-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Added insecure_options config list #2695
Added insecure_options config list #2695
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.
Looks good! Just some minor comment/docs changes.
client/driver/rkt.go
Outdated
cmdArgs = append(cmdArgs, "--insecure-options=all") | ||
} | ||
|
||
// same for debug |
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.
It takes some reading to figure out the context for "same" so maybe just repeat the relevant comment here:
// debug is a global argument, so add it before "run"
run with ```--insecure-options=all```. | ||
|
||
* `insecure_options` - (Optional) List of insecure options for rkt. Consult ```rkt --help``` | ||
for list of supported values. This list overrides the ```--insecure-options=all``` when |
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.
Single backticks around flags:
run with `--insecure-optionals=all`.
This list overrides the
--insecure-options=all
when
should probably read:
This list overrides the
--insecure-options=all
default when
Test failure is unrelated. Merging. Thanks for the contribution! |
I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions. |
Follow-up of #2026
While doing my proof-of-concepting, I see some usecases for --insecure-options=ondisk for example. Nevertheless, the options right now are either 'none' or 'all', this config will take precedence over the "rkt trust wasn't done", so one can instead of just omiting trust_prefix (and losing all secure options) specify insecure_options = ["image"].
It also makes it possible to enforce --insecure-options=none.
I've moved --debug as well, as both --debug and --insecure-options are rkt global parameters - made better sense.