-
Notifications
You must be signed in to change notification settings - Fork 93
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
[ENH] - Prefer use of jupyter_server_config.json
over jupyter_server_config.py
#2248
Comments
Of note imported values such as: Lines 44 to 49 in 858ca5f
can be provided on a static traitlet using a dotted value (see how the default value is defined in here). |
Another argument for moving to JSON is that terraform can validate JSON files after templating (because there are jsonencode/jsondecode functions which will throw if there is a syntax error), but it cannot do that for python files. |
But the downside is that terraform by default does not support json5 so it would not be possible to keep the comments in (unless we do manual preprocessing/terraform plugin). Also |
I found a way to validate syntax errors for Python files using local-exec in resource as implemented in #2286 |
Feature description
jupyter_server_config.py
is used butjupyter_server_config.json
is potentially a safer option as it does not execute any code.Value and/or benefit
When configuration owner makes a typo they are less likely to break the setup.
This does not have a direct security implication in a container, but has an indirect implication such that if the config enables a security feature but gets broken by a invalid character in the input variable (which is more likely with
.py
files) then the security feature would not be enabled.Anything else?
No response
The text was updated successfully, but these errors were encountered: