norcams / himlar-connect

himlar FEIDE Connect integration dev env
Apache License 2.0
0 stars 0 forks source link

himlar-connect

Himlar+Connect integration development env

Definitions

Defined by OpenStack

User
An identity able to authenticate with the Keystone service.
Project
A project is a collection of instances and services related to a set of users.
Group
A user can be member of one or several groups.

Defined by UH IaaS

User
A person within the higher academic sector with an identity record in FEIDE.
Personal project
Each user in UH IaaS is given access to a personal project by default. This project has a limited resource quota but exposes all available services

Milestones

Integration phase 1 (MVP)

Use case summary

Design outline

A separate registration service configured as being the same application as IaaS through Connect. The registration service is split into a frontend, queue and backend. API calls against Openstack is only run by the backend service.

When registering, the backend service creates Openstack objects as needed for the user to be able to log in and access their personal project.

Integration phase 2

Use case summary

Using the vagrant based dev env

git clone git@github.com:norcams/himlar-connect.git
cd himlar-connect
vagrant up

Access http://10.0.3.11 in your local browser. Domain is 'Default', password admin/himlardev

vagrant ssh
sudo -i

Credentials for using the openstack cli are found in /root

source keystonerc_admin
set | grep OS_

openstack service list
openstack endpoint list
openstack endpoint show keystone

openstack token issue
openstack role list
openstack user list

openstack domain list
openstack domain show Connect

Packages and paths

rpm -qa | grep keystone
rpm -ql python-keystone

Keystone is at /usr/lib/python2.7/site-packages/keystone

To register the dev env Horizon/Keystone in Connect

1) Create two files in the project directory with the OAuth client id and secret from http://dashboard.dataporten.no

echo <my_oauth_client_id> > oauth_client_id
echo <my_oauth_client_secret> > oauth_client_secret

2) Run vagrant rsync and provision

vagrant rsync && vagrant provision

3) Register the application in FEIDE Connect using the values in the output