-
Notifications
You must be signed in to change notification settings - Fork 4
Break the installation defaults out into their structure. #218
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
base: next
Are you sure you want to change the base?
Conversation
Add tests that assert the consistency of the options that are accepted by the generateconfs command line with the internal library function. Additionally assert that the library routine itself matches the defaults structure thus making the _structure_ the definitive source of truth. Doing so highlighted the following missing command line options which are added as of this commit: --seafile_secret --seafile_ccnetid
@@ -247,6 +247,8 @@ def main(argv, _generate_confs=generate_confs, _print=print): | |||
'openid_port', | |||
'openid_show_port', | |||
'openid_session_lifetime', | |||
'seafile_secret', |
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.
Hmm, I have a hunch that we on purpose did not expose this option to prevent passing secrets on the command line, where they may be leak to shell history and any other local users. There's a note about the similar case for the OIDCCryptoPassphrase
in mig/install/apache-MiG-template.conf
.
At least we need to discuss the security implications before allowing anything like that.
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 haven't had time to review thoroughly but we definitely need to resolve the seafile_secret
exposure comment before this can be merged.
Let me know which keys should be hidden and I will make the change. |
Well, anything that indicates a secret, including password/passphrase needs closer consideration. Perhaps rule of thumb for a migrid developer's guide. |
Add tests that assert the consistency of the options that are accepted by the generateconfs command line with the internal library function. Additionally assert that the library routine itself matches the defaults structure thus making the structure the definitive source of truth.
Doing so highlighted the following missing command line options which are added as of this commit:
--seafile_secret
--seafile_ccnetid