Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hostname not guaranteed static #9

Closed
cwatsonc opened this issue Apr 7, 2017 · 2 comments
Closed

Hostname not guaranteed static #9

cwatsonc opened this issue Apr 7, 2017 · 2 comments

Comments

@cwatsonc
Copy link

cwatsonc commented Apr 7, 2017

My organization has been experimenting with https://github.com/jelhub/scimgateway as a provisioning solution hosted and connected to MS Azure AAD. We found some limitations with the code and will make recommendations to correct these. This can apply to any cloud provider hosted solution and not just MS Azure.

The first problem we encountered is with the secrets management strategy chosen. With cloud fabric solutions you might not be guaranteed a static hostname be delivered to your app -- this is the case with MS Azure and any strategies used that rely on a static hostname should have a strategy to mitigate the fact when not be guaranteed static.

In the config recovery code (lib/utils.js) we added:

var myhost = process.env.hostname_deg || require('os').hostname();
var chi = require('path').basename(configFile) + myhost;

To ensure a static value on MS Azure this is required.

The hostname_deg value must be set on the environment variables prior to execution.

@jelhub
Copy link
Owner

jelhub commented Apr 9, 2017

New version 0.4.5 now use machine-id instead of hostname and this id should be unique within the OS installation.

Password encryption seed may also be overridden by setting environment variables before starting the gateway. Setting environment variable SEED will override the default machine-id based password seed.

@cwatsonc
Copy link
Author

verified working in 0.4.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants