-
Notifications
You must be signed in to change notification settings - Fork 4
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
Consider adding justification modes #257
Comments
I'm having a slightly different list:
I think the only difference is "If a justification is not provided, accept the request". I wonder what use case is that? |
I think there's a "dry run" scenario where we want to know whether justification would have succeeded, but we don't want to reject requests. This would be very helpful when rolling out the new system. |
We can already turn on / off justification with a sub-block in the configuration. I'm debating whether we need a "dry run" flag to indicate whether to enforce justification. It seems beneficial per Seth's comment. When in dryrun, we allow no justification or invalid jvs token. We just log a warning. Otherwise, we demand justification must be present (breakglass or not is a separate knob). |
After some thought, I think the "dry run" mode can be covered in the "best effort" log mode. When enabled, any error during audit logging will be (std) logged but we won't return the error. The log mode has a global default and can be overridden on each log. So now the behavior is: When justification is enabled and the log mode is "fail close". If justification token is missing or invalid, we will return error. If there is no objection, then I will close this issue. |
No objection. |
I think this is fine for now, but we should consider an enhancement in the future of making this an enum like
JustificationMode
. I can see customer's wanting any of the following behavior:justification_verified: true
orfalse
)Originally posted by @sethvargo in #254 (comment)
The text was updated successfully, but these errors were encountered: