CSI is a distributed (service-oriented) infrastructure intended solely for educational purposes (and should never be used in a production environment).
At the core is a generic REST server that accepts server specifications, which are then executed to start what we call subservers. IMPORTANT NOTE: this server accepts and executes executable JavaScipt code. This approach is suitable in our context of education, but should never be used in a production environment.
The file launcher.js launches a number of services, including
- YellowPages: a subscription service where services can find eachother
- provide: here, a server describes a service that it offers.
- require: here, a server describes all services that it needs.
For each required service, the requestor will receive a /fulfill message describing
a provider (either immediately or as soon as the service is 'provided')
- IDManager: a service persisting user names and hashed passwords
- verify: check if the offered credentials are bona fide
- AccessManager: a service which checks access rights/roles
- verify: checks if a user has the required right/role
- Login: allows users to log in on HTML pages
- keyexchange: create secure communication (shared secret)
- login: secure login
See generic info on cloning a github repo
Recent node.js, see nodejs.org
e.g. download Win msi, Mac pkg or tarball
Two Factor Authentication is at the moment only in demo phase, to run the demo, launch app.js with node.js en go to http://localhost:3000
install npm and run the script (debian as an example):
$ sudo apt install npm
$ npm install
$ npm start
Last step is to visit jsoneditor.html
and press login
(currently jsoneditor has dummy data and doesn't do much
First we need to install docker to run everything:
For Debian based systems:
sudo apt install docker
# Start docker
sudo systemctl start docker
# Test if docker works correctly
sudo docker run hello-world
For Arch based systems:
sudo pacman -Syu
sudo pacman -S docker
# Start docker
sudo systemctl start docker
# Test if docker works correctly
sudo docker run hello-world
For centOS based systems:
$ sudo yum install -y yum-utils \
device-mapper-persistent-data \
lvm2
$ sudo yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo
$ sudo yum install docker-ce
$ sudo systemctl start docker
# Test if docker works
$ sudo docker run hello-world
- Pum Walters - Initial work - PurpleBooth
- Maricio Jongma - Dockerizing and setup fixes - CSI_Fork_MackyNous
See also the list of contributors who participated in this project.
This project is licensed under the MIT License.
Copyright (c) 2018 Pum Walters, HvA
To see the full licence see the file calles: 'LICENSE'
- Pum Walters
- James Watson
jsoneditor
#login:
=> keyexchange(sessionID, pubsecr, halfsecr)
<= (halfsecret)//sharedsecret
#connect
=> login(uname, pw)
<= sessionToken
yp
=> provides(desc)
=> require([ip], port, srvcs)
idMngr
=> verify(sid, name, pw)
<= OK/KO
accessMngr
=> verify(name, right)
<= OK/KO
login
=> fulfill(port, srvc, ...)
=> keyExchange(sessionID, pubSecr, halfSecr)
<= halfSecr
~=> login(pw, uname)
=> ID-Mngr
+=> verify/uname{pw)
<= token