-
Notifications
You must be signed in to change notification settings - Fork 432
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
wire SkipValidation further into SCEP provisioner #1991
base: master
Are you sure you want to change the base?
Conversation
|
Intermediates: a.intermediateX509Certs, | ||
Roots: a.rootX509Certs, | ||
Intermediates: a.intermediateX509Certs, | ||
SkipValidation: a.config.SkipValidation, |
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.
Can you create a new property called SkipSCEPValidation
in the config.Config
instead, and pass that here?
// SkipValidation is used to skip the validation of the options, when implementing custom | ||
// integrations | ||
SkipValidation bool |
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.
This can remain SkipValidation
, but update the comment
// SkipValidation is used to skip the validation of the options, when implementing custom | |
// integrations | |
SkipValidation bool | |
// SkipValidation is used to skip the validation of the SCEP options. | |
SkipValidation bool |
if o.SkipValidation { | ||
return nil | ||
} | ||
switch { | ||
case len(o.Intermediates) == 0: |
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.
if o.SkipValidation { | |
return nil | |
} | |
switch { | |
case len(o.Intermediates) == 0: | |
switch { | |
case o.SkipValidation: | |
return nil | |
case len(o.Intermediates) == 0: |
Name of feature:
pass SkipValidation further into the SCEP provisioner
Pain or issue this feature alleviates:
When writing custom integrations, some of the validations don't apply, which unintentionally prevents the provisioner from starting up.
Why is this important to the project (if not answered above):
Is there documentation on how to use this feature? If so, where?
No additional docs
In what environments or workflows is this feature supported?
Primarily for custom integrations which create their own provisioner/authority objects
In what environments or workflows is this feature explicitly NOT supported (if any)?
Supporting links/other PRs/issues:
💔Thank you!