ESGF / esgf-installer

ESGF P2P Node Installer
https://esgf.llnl.gov/
Other
21 stars 21 forks source link

The "rootAdmin" user is not added to the correct publisher groups #601

Closed nathanlcarlson closed 5 years ago

nathanlcarlson commented 5 years ago

The "rootAdmin" user needs to be added to the "wheel" group of the local node by default so it has permission to publish and unpublish.

nathanlcarlson commented 5 years ago

This is done with the SQL below

INSERT INTO esgf_security.permission VALUES (1, 1, 1, true);
sashakames commented 5 years ago

We were debating of whether to add this to CoG after the user gets created or just run as an add-on.

nathanlcarlson commented 5 years ago

Yea, since all user creation and group/role management goes through CoG on the node postinstall, it would be strange to have this one exception where the installer does it.

nathanlcarlson commented 5 years ago

Not only strange, perhaps dangerous.

nathanlcarlson commented 5 years ago

I created PR https://github.com/William-Hill/COG/pull/4 on @William-Hill 's COG fork to address this.

William-Hill commented 5 years ago

Just merged the PR on my CoG fork

nathanlcarlson commented 5 years ago

PR https://github.com/William-Hill/COG/pull/5 officially resolves this, as long as @William-Hill 's COG fork (branch "ESGF_3.0") is used.