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

Improve the users/groups initialisation script #47

Closed
dbyrns opened this issue May 30, 2018 · 1 comment
Closed

Improve the users/groups initialisation script #47

dbyrns opened this issue May 30, 2018 · 1 comment
Assignees
Labels
enhancement Improvements in term of performance or behaviour
Milestone

Comments

@dbyrns
Copy link
Contributor

dbyrns commented May 30, 2018

We should create automatically "service" users use by services to access magpie.
Exemple are the catalog who needs an access to crawl thredds or project-api which required access to get the projects available to a particular user.
I propose that an env file lists all required "service" users that would be read by magpie initialisation script and also used by the services requiring that type of access to avoid duplicate user/pw configuration.

On top of that, these users + the anononymous user and the default users and administrators groups should be made read-only and prevent any renaming, deletion or password update. (relates #164)

@fmigneault
Copy link
Collaborator

Most operations can be done with file:
https://github.com/Ouranosinc/Magpie/blob/master/config/permissions.cfg

Could add sub fields to user section such that they get created as wanted with full definition.

user:
  username: <name>
  password: <pwd> 
  groups: 
    - <grp1>
    - <grp2>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvements in term of performance or behaviour
Projects
None yet
Development

No branches or pull requests

2 participants