-
Notifications
You must be signed in to change notification settings - Fork 564
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
Allow custom root PEM #477
Conversation
This change allows use of a custom env `COSIGN_ROOT` for those who wish to use their own root CA in an off public net fulcio instance. Ultimately we might want to do this with a flag, but it requires a fair amount of rewrite, so this seems a good pragamtic bridge without being to disruptive prior to 1.0 Signed-off-by: Luke Hinds <[email protected]>
Signed-off-by: Luke Hinds <[email protected]>
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 nit on the env var name. We should also get this into the README.md somewhere.
pkg/cosign/fulcio/fulcio.go
Outdated
@@ -46,6 +47,7 @@ const ( | |||
FlowNormal = "normal" | |||
FlowDevice = "device" | |||
FlowToken = "token" | |||
altRoot = "COSIGN_ROOT" |
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.
nit: maybe "SIGSTORE_ROOT_DIR" instead? These are really the roots for the sigstore project and aren't cosign specific.
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.
agree on both, I will add the other flags added too.
Signed-off-by: Luke Hinds <[email protected]>
Signed-off-by: Luke Hinds <[email protected]>
Signed-off-by: Luke Hinds <[email protected]>
Signed-off-by: Luke Hinds <[email protected]>
This change allows use of a custom env
COSIGN_ROOT
for thosewho wish to use their own root CA in an off public net fulcio
instance.
Ultimately we might want to do this with a flag, but it requires
a fair amount of rewrite, so this seems a good pragamtic bridge
without being to disruptive prior to 1.0
Resolves: #87
Signed-off-by: Luke Hinds [email protected]