Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mishaslavin
Copy link

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!

@CLAassistant
Copy link

CLAassistant commented Sep 10, 2024

CLA assistant check
All committers have signed the CLA.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@github-actions github-actions bot added the needs triage Waiting for discussion / prioritization by team label Sep 10, 2024
Intermediates: a.intermediateX509Certs,
Roots: a.rootX509Certs,
Intermediates: a.intermediateX509Certs,
SkipValidation: a.config.SkipValidation,
Copy link
Member

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?

Comment on lines +29 to +31
// SkipValidation is used to skip the validation of the options, when implementing custom
// integrations
SkipValidation bool
Copy link
Member

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

Suggested change
// 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

Comment on lines +40 to 44
if o.SkipValidation {
return nil
}
switch {
case len(o.Intermediates) == 0:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if o.SkipValidation {
return nil
}
switch {
case len(o.Intermediates) == 0:
switch {
case o.SkipValidation:
return nil
case len(o.Intermediates) == 0:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Waiting for discussion / prioritization by team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants