Skip to content

DM-11308: setup PDAC to only allow access to user with 'lsst_pdac' role #418

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

Merged
merged 2 commits into from
Jul 24, 2017

Conversation

loitly
Copy link
Contributor

@loitly loitly commented Jul 21, 2017

https://jira.lsstcorp.org/browse/DM-11308

Setup PDAC to only allow access to users with 'lsst_pdac' or 'lsst_users' group.
Make sure to select "National Center for Supercomputing Applications" identity provider.
A pull request was also created for code changes in lsst/suit#4

You cannot deploy a version locally. However, you can test it here: https://facade.ipac.caltech.edu/suit/

cn = cn == null ? kv[1] : cn;
} else if (kv[0].equalsIgnoreCase("ou")) {
ou = ou == null ? kv[1] : ou;
} else if (kv[0].equalsIgnoreCase("dc")) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For ignorant people like me it would be helpful to know what 'ou', 'cn', and 'dc' are...
May be adding a link to some docs somewhere in OidcAdapter.javawould help.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comments added.

}
}
// is authenticated.. now check to see if user is allowed access
if (authRequired && allowAccess != null && allowAccess.size() > 0) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious how this Filter servlet is triggered and who is setting "allow" parameter? Can we be sure that allowAccess is non-null when authRequired is true?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This filter is added to web.xml in lsst/suit. Beside the filter class, you can pass along parameters. allow is one of them.
I am defaulting to allow all. So, when allow is not given, we don't check.

@loitly loitly merged commit 48a06e0 into dev Jul 24, 2017
@loitly loitly deleted the DM-11308_enforce_pdac_user branch July 24, 2017 17:04
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

Successfully merging this pull request may close these issues.

2 participants