metron-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ceste...@apache.org
Subject [01/46] incubator-metron git commit: METRON-237 Remove metron-ui from the code base. (mmiklavcic via cestella) closes apache/incubator-metron#159
Date Fri, 17 Jun 2016 14:37:06 GMT
Repository: incubator-metron
Updated Branches:
  refs/heads/master 019544b77 -> 40aadab88


http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/40aadab8/metron-ui/script/provision
----------------------------------------------------------------------
diff --git a/metron-ui/script/provision b/metron-ui/script/provision
deleted file mode 100755
index 22ffc52..0000000
--- a/metron-ui/script/provision
+++ /dev/null
@@ -1,80 +0,0 @@
-#!/usr/bin/env sh
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-# This file is meant to be executed inside the Vagrant development VM
-
-# Prevent dpkg-reconfigure interactive sessions
-export DEBIAN_FRONTEND=noninteractive
-
-
-### BEGIN SAMPLE PCAP DATA ###
-apt-get update
-apt-get install -y libpcap-dev tshark
-curl -s 'http://www.snaketrap.co.uk/pcaps/hbot.pcap' -o /vagrant/seed/hbot.pcap
-### END SAMPLE PCAP DATA ###
-
-
-### BEGIN OPENLDAP ###
-# slapd doesn't seem to work right unless you configure it via debconf
-# The password for all users is metron
-debconf-set-selections /vagrant/seed/slapd.seed
-apt-get update
-apt-get -y install slapd ldap-utils
-
-cd /vagrant/seed/ldap
-ldapmodify -Y EXTERNAL -H ldapi:/// -f logging.ldif
-ldapmodify -Y EXTERNAL -H ldapi:/// -f config.ldif
-ldapadd -D cn=admin,cn=config -w "metron" -H ldapi:/// -f memberof_add.ldif
-ldapadd -D cn=admin,cn=config -w "metron" -H ldapi:/// -f memberof_config.ldif
-cd -
-### END OPENLDAP ###
-
-
-### BEGIN REDIS ###
-apt-get -y install redis-server
-### END REDIS ###
-
-
-### BEGIN ELASTICSEARCH ###
-apt-get -y install openjdk-7-jre-headless
-wget --quiet https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.1.1.deb
-dpkg -i elasticsearch-1.1.1.deb
-rm -rf elasticsearch-1.1.1.deb
-cd /usr/share/elasticsearch
-bin/plugin -install mobz/elasticsearch-head
-cd -
-update-rc.d elasticsearch defaults 95 10
-service elasticsearch restart
-### END ELASTICSEARCH ###
-
-
-### NODE SETUP ###
-apt-get update
-apt-get install -y nodejs npm
-
-ln -s /usr/bin/nodejs /usr/bin/node
-npm install -g nodemon
-
-cd /vagrant
-rm -rf node_modules
-su vagrant -c "npm install"
-su vagrant -c  "echo 'export NODE_ENV=vagrant' >> /home/vagrant/.bashrc"
-su vagrant -c "ln -s /vagrant/.nodemonignore ~/.nodemonignore"
-cd -
-### END NODE SETUP ###

http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/40aadab8/metron-ui/seed/ldap/config.ldif
----------------------------------------------------------------------
diff --git a/metron-ui/seed/ldap/config.ldif b/metron-ui/seed/ldap/config.ldif
deleted file mode 100644
index 69b4d90..0000000
--- a/metron-ui/seed/ldap/config.ldif
+++ /dev/null
@@ -1,33 +0,0 @@
-#  Licensed to the Apache Software Foundation (ASF) under one
-#  or more contributor license agreements.  See the NOTICE file
-#  distributed with this work for additional information
-#  regarding copyright ownership.  The ASF licenses this file
-#  to you under the Apache License, Version 2.0 (the
-#  "License"); you may not use this file except in compliance
-#  with the License.  You may obtain a copy of the License at
-#
-#      http://www.apache.org/licenses/LICENSE-2.0
-#
-#  Unless required by applicable law or agreed to in writing, software
-#  distributed under the License is distributed on an "AS IS" BASIS,
-#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-#  See the License for the specific language governing permissions and
-#  limitations under the License.
-
-
-dn: cn=config
-changetype: modify
-
-dn: olcDatabase={0}config,cn=config
-changetype: modify
-add: olcRootDN
-olcRootDN: cn=admin,cn=config
-
-dn: olcDatabase={0}config,cn=config
-changetype: modify
-add: olcRootPW
-olcRootPW: {MD5}y/05lb1L2umvqo6VrZBGkw==
-
-dn: olcDatabase={0}config,cn=config
-changetype: modify
-delete: olcAccess

http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/40aadab8/metron-ui/seed/ldap/content.ldif
----------------------------------------------------------------------
diff --git a/metron-ui/seed/ldap/content.ldif b/metron-ui/seed/ldap/content.ldif
deleted file mode 100644
index 7c7a875..0000000
--- a/metron-ui/seed/ldap/content.ldif
+++ /dev/null
@@ -1,62 +0,0 @@
-#  Licensed to the Apache Software Foundation (ASF) under one
-#  or more contributor license agreements.  See the NOTICE file
-#  distributed with this work for additional information
-#  regarding copyright ownership.  The ASF licenses this file
-#  to you under the Apache License, Version 2.0 (the
-#  "License"); you may not use this file except in compliance
-#  with the License.  You may obtain a copy of the License at
-#
-#      http://www.apache.org/licenses/LICENSE-2.0
-#
-#  Unless required by applicable law or agreed to in writing, software
-#  distributed under the License is distributed on an "AS IS" BASIS,
-#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-#  See the License for the specific language governing permissions and
-#  limitations under the License.
-
-
-dn: ou=groups,dc=metron,dc=dev
-objectclass: organizationalUnit
-objectclass: top
-ou: groups
-
-dn: ou=users,dc=metron,dc=dev
-objectclass: organizationalUnit
-objectclass: top
-ou: users
-
-dn: cn=joesmith,ou=users,dc=metron,dc=dev
-cn: joesmith
-givenname: Joe
-sn: Smith
-mail: joesmith@metron.dev
-objectclass: inetOrgPerson
-objectclass: top
-uid: joesmith
-userpassword: {MD5}y/05lb1L2umvqo6VrZBGkw==
-
-dn: cn=maryfodder,ou=users,dc=metron,dc=dev
-cn: maryfodder
-givenname: Mary
-sn: Fodder
-mail: maryfodder@metron.dev
-objectclass: inetOrgPerson
-objectclass: top
-uid: maryfodder
-userpassword: {MD5}y/05lb1L2umvqo6VrZBGkw==
-
-dn: cn=analysts,ou=groups,dc=metron,dc=dev
-objectclass: groupOfNames
-cn: analysts
-member: cn=joesmith,ou=users,dc=metron,dc=dev
-
-dn: cn=investigators,ou=groups,dc=metron,dc=dev
-objectclass: groupOfNames
-cn: investigators
-member: cn=maryfodder,ou=users,dc=metron,dc=dev
-
-dn: cn=soc,ou=groups,dc=metron,dc=dev
-objectclass: groupOfNames
-cn: soc
-member: cn=joesmith,ou=users,dc=metron,dc=dev
-member: cn=maryfodder,ou=users,dc=metron,dc=dev

http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/40aadab8/metron-ui/seed/ldap/logging.ldif
----------------------------------------------------------------------
diff --git a/metron-ui/seed/ldap/logging.ldif b/metron-ui/seed/ldap/logging.ldif
deleted file mode 100644
index 60b5b11..0000000
--- a/metron-ui/seed/ldap/logging.ldif
+++ /dev/null
@@ -1,22 +0,0 @@
-#  Licensed to the Apache Software Foundation (ASF) under one
-#  or more contributor license agreements.  See the NOTICE file
-#  distributed with this work for additional information
-#  regarding copyright ownership.  The ASF licenses this file
-#  to you under the Apache License, Version 2.0 (the
-#  "License"); you may not use this file except in compliance
-#  with the License.  You may obtain a copy of the License at
-#
-#      http://www.apache.org/licenses/LICENSE-2.0
-#
-#  Unless required by applicable law or agreed to in writing, software
-#  distributed under the License is distributed on an "AS IS" BASIS,
-#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-#  See the License for the specific language governing permissions and
-#  limitations under the License.
-
-
-dn: cn=config
-changetype: modify
-add: olcLogLevel
-olcLogLevel: stats
-

http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/40aadab8/metron-ui/seed/ldap/memberof_add.ldif
----------------------------------------------------------------------
diff --git a/metron-ui/seed/ldap/memberof_add.ldif b/metron-ui/seed/ldap/memberof_add.ldif
deleted file mode 100644
index ecea0fc..0000000
--- a/metron-ui/seed/ldap/memberof_add.ldif
+++ /dev/null
@@ -1,22 +0,0 @@
-#  Licensed to the Apache Software Foundation (ASF) under one
-#  or more contributor license agreements.  See the NOTICE file
-#  distributed with this work for additional information
-#  regarding copyright ownership.  The ASF licenses this file
-#  to you under the Apache License, Version 2.0 (the
-#  "License"); you may not use this file except in compliance
-#  with the License.  You may obtain a copy of the License at
-#
-#      http://www.apache.org/licenses/LICENSE-2.0
-#
-#  Unless required by applicable law or agreed to in writing, software
-#  distributed under the License is distributed on an "AS IS" BASIS,
-#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-#  See the License for the specific language governing permissions and
-#  limitations under the License.
-
-
-dn: cn=module,cn=config
-objectClass: olcModuleList
-cn: module
-olcModulePath: /usr/lib/ldap
-olcModuleLoad: memberof

http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/40aadab8/metron-ui/seed/ldap/memberof_config.ldif
----------------------------------------------------------------------
diff --git a/metron-ui/seed/ldap/memberof_config.ldif b/metron-ui/seed/ldap/memberof_config.ldif
deleted file mode 100644
index 43368ae..0000000
--- a/metron-ui/seed/ldap/memberof_config.ldif
+++ /dev/null
@@ -1,28 +0,0 @@
-#  Licensed to the Apache Software Foundation (ASF) under one
-#  or more contributor license agreements.  See the NOTICE file
-#  distributed with this work for additional information
-#  regarding copyright ownership.  The ASF licenses this file
-#  to you under the Apache License, Version 2.0 (the
-#  "License"); you may not use this file except in compliance
-#  with the License.  You may obtain a copy of the License at
-#
-#      http://www.apache.org/licenses/LICENSE-2.0
-#
-#  Unless required by applicable law or agreed to in writing, software
-#  distributed under the License is distributed on an "AS IS" BASIS,
-#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-#  See the License for the specific language governing permissions and
-#  limitations under the License.
-
-
-dn: olcOverlay=memberof,olcDatabase={1}hdb,cn=config
-objectClass: olcMemberOf
-objectClass: olcOverlayConfig
-objectClass: olcConfig
-objectClass: top
-olcOverlay: memberof
-olcMemberOfDangling: ignore
-olcMemberOfRefInt: TRUE
-olcMemberOfGroupOC: groupOfNames
-olcMemberOfMemberAD: member
-olcMemberOfMemberOfAD: memberOf

http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/40aadab8/metron-ui/seed/slapd.seed
----------------------------------------------------------------------
diff --git a/metron-ui/seed/slapd.seed b/metron-ui/seed/slapd.seed
deleted file mode 100644
index 1adc3f8..0000000
--- a/metron-ui/seed/slapd.seed
+++ /dev/null
@@ -1,14 +0,0 @@
-
-slapd	slapd/password1	password	metron
-slapd	slapd/password2	password	metron
-slapd	slapd/purge_database	boolean	false
-slapd	slapd/allow_ldap_v2	boolean	false
-slapd	slapd/invalid_config	boolean	true
-slapd	shared/organization	string	Metron
-slapd	slapd/dump_database	select	when needed
-slapd	slapd/domain	string	metron.dev
-slapd	slapd/backend	select	HDB
-slapd	slapd/no_configuration	boolean	false
-slapd	slapd/dump_database_destdir	string	/var/backups/slapd-VERSION
-slapd	slapd/move_old_database	boolean	true
-

http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/40aadab8/metron-ui/test/metron-ui-test.js
----------------------------------------------------------------------
diff --git a/metron-ui/test/metron-ui-test.js b/metron-ui/test/metron-ui-test.js
deleted file mode 100644
index 4fd90fe..0000000
--- a/metron-ui/test/metron-ui-test.js
+++ /dev/null
@@ -1,33 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- 
-/* global assert:true */
-
-var assert = require('chai').assert
-  , request = require('supertest')
-	, app = require('../lib/metron-ui').app;
-
-describe('index', function () {
-  it('responds with success', function (done) {
-    request(app).
-      get('/').
-      set('Accept', 'text/html').
-      expect('Content-Type', /html/).
-      expect(302, done); // unauthed
-  });
-});

http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/40aadab8/metron-ui/test/session-test.js
----------------------------------------------------------------------
diff --git a/metron-ui/test/session-test.js b/metron-ui/test/session-test.js
deleted file mode 100644
index f78a8b7..0000000
--- a/metron-ui/test/session-test.js
+++ /dev/null
@@ -1,80 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/*global assert: true*/
-
-if (!process.env.IN_TRAVIS) {
-  var assert = require('chai').assert
-    , request = require('supertest')
-    , app = require('../lib/metron-ui').app;
-
-  describe('sessions', function () {
-    describe('log in / log out', function () {
-      var session = request.agent(app);
-
-      it('redirects to login unless logged in', function (done) {
-        session.
-          get('/').
-          end(function (err, res) {
-            assert.equal(res.statusCode, 302);
-            assert.equal(res.header['location'], '/login');
-            done();
-          });
-      });
-
-      it('logs in', function (done) {
-        session.
-          post('/login').
-          send({ email: 'joesmith@metron.dev', password: 'metron' }).
-          end(function (err, res) {
-            // redirects to home
-            assert.equal(res.header['location'], '/');
-            assert.equal(res.statusCode, 302);
-            done();
-          });
-      });
-
-      it('logs out', function (done) {
-        session.
-          get('/logout').
-          end(function (err, res) {
-            // redirects to login
-            assert.equal(res.header['location'], '/login');
-            assert.notMatch(res.header['set-cookie'], /joesmith/);
-            assert.equal(res.statusCode, 302);
-            done();
-          });
-      });
-    });
-
-    describe('session not set', function () {
-      var session = request.agent(app);
-
-      it('fails log in', function (done) {
-        session.
-          post('/login').
-          send({ email: 'joesmith@metron.dev', password: 'foobar' }).
-          end(function (err, res) {
-            assert.equal(res.header['location'], '/login');
-            assert.notMatch(res.header['set-cookie'], /joesmith/);
-            assert.equal(res.statusCode, 302);
-            done();
-          });
-      });
-    });
-  });
-}


Mime
View raw message