-
Notifications
You must be signed in to change notification settings - Fork 7
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
secure config for thredds #99
secure config for thredds #99
Conversation
Can one of the admins verify this patch? |
LGTM. Can you add brief description of the new component to README https://github.com/bird-house/birdhouse-deploy/blob/master/birdhouse/optional-components/README.md (follow existing format) and also add to birdhouse-deploy/birdhouse/env.local.example Lines 72 to 80 in 754d2d1
|
permissions: | ||
# this can be combined with 'all-public-access' | ||
# it only ensures that it is set if not also employed | ||
- service: thredds |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the README, make clear to user this will make all of Thredds publicly readable, except those 2 secure folders. Once enabled, to disable, user have to login to Magpie and perform manual changes, diactivating the component is not enough. Similar to https://github.com/bird-house/birdhouse-deploy/tree/master/birdhouse/optional-components#give-public-access-to-all-resources-for-testing-purposes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On second though, do you even need this section? Just let user decide what they want to expose themselves. You just want to ensure those 2 folders are secured.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Acutally, coming back on my previous comment.
Yes, since the user can decide or not to add both the public-access + secure, no need to add the public one again here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it safer to not force public Thredds content on the user. So yeah, change that and update README and env.local also, thanks.
I guess we will have to test this together with the magpie upgrade? This can not be tested alone.
@tlvu |
Maybe there is no point into adding permissions for thredds after all. Because, even if it would make sense to add permission to the secure directory, from the birdhouse-deploy repo perspective, we should not even know that this folder exists. For wps permissions it can make sense because the API is known, but otherwise it is a per-node config that really should only exist in the private config. |
Indeed, most of these kind on configs should be only on private server side. The listed directories are the only ones I could find that made sense to protect. |
I think DavidB have a point here. Thredds permissions will be different for each organization, can not have a one size fit all config like this. You should just move the 2 directives about |
I feel adding something that explicitly removes access into a config named |
7f7b621
to
5bcc1c3
Compare
In the README https://github.com/bird-house/birdhouse-deploy/tree/master/birdhouse/optional-components#give-public-access-to-all-resources-for-testing-purposes we clearly state And we will only revoke access for
Agreed but why try to block Like @dbyrns, I think a |
I personally prefer to preserve the granularity of the two files, even if the configs are only for testing. I agree with the root |
OK I see your point. Can you then please add to the optional-components README https://github.com/bird-house/birdhouse-deploy/tree/master/birdhouse/optional-components#give-public-access-to-all-resources-for-testing-purposes for your new |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost there :D
birdhouse/optional-components/secure-thredds/secure-access-magpie-permission.cfg
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, merge when ready.
No description provided.