-
Notifications
You must be signed in to change notification settings - Fork 29
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
feat(config) added global config manager #533
Conversation
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.
One small change suggested, rest looks good to me 👍
I don't see any CLI for this? |
Note that the current |
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.
As discussed IRL:
- implement
renku config --global
/ keep the git config code - remove dangling code from
/cli/_config.py
- remove
/cli/env.py
and/cli/endpoint.py
- implement
ConfigManager
as another mixin
Is this ready for re-review @jsam? |
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.
Nice, thanks! just minor suggestions
renku/api/config.py
Outdated
|
||
def store_config(self, config): | ||
"""Persists global configuration object.""" | ||
with open(str(self.config_path), 'w') as file: |
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.
should we be setting some restrictive access flags on the file and directory, e.g. 600?
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.
So currently they are 644. Why is 644 a problem?
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.
multi-tenant environments, e.g. HPC clusters
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.
🎉
closes #532