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

UPSTREAM: <carry>: add a way to inject a vulnerable, legacy service-c… #852

Merged
merged 1 commit into from Jul 13, 2021

Conversation

deads2k
Copy link

@deads2k deads2k commented Jul 9, 2021

…a.crt for migration compatibility

part 3 of the plan from openshift/service-ca-operator#167

@openshift-ci-robot openshift-ci-robot added the backports/unvalidated-commits Indicates that not all commits come to merged upstream PRs. label Jul 9, 2021
@openshift-ci-robot
Copy link

@deads2k: the contents of this pull request could not be automatically validated.

The following commits could not be validated and must be approved by a top-level approver:

@openshift-ci openshift-ci bot requested review from marun and mfojtik July 9, 2021 20:53
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 9, 2021
Copy link

@marun marun left a comment

Choose a reason for hiding this comment

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

/lgtm

A trivial nit, looks good from functional perspective.

}
useVulnerableBool, err := strconv.ParseBool(useVulnerable)
if err != nil {
// caller went crazy, don't use this unless you're careful
Copy link

Choose a reason for hiding this comment

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

nit: I'm not able to discern your intent from this comment, maybe restate?

(No action required) Given that ParseBool will return an error if the value is not something that can be converted to a boolean, maybe emit a more explicit failure message (i.e. Value supplied for OPENSHIFT_USE_VULNERABLE_LEGACY_SERVICE_CA_CRT cannot be parsed as a boolean: %v) so that the solution to the error is obvious from the log entry alone?

Copy link
Author

Choose a reason for hiding this comment

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

(No action required) Given that ParseBool will return an error if the value is not something that can be converted to a boolean, maybe emit a more explicit failure message (i.e. Value supplied for OPENSHIFT_USE_VULNERABLE_LEGACY_SERVICE_CA_CRT cannot be parsed as a boolean: %v) so that the solution to the error is obvious from the log entry alone?

You are correct. I'm hoping to see more refinement in this area in either 4.9 or 4.10. Perhaps by removing the KCM patch entirely. This is ugly, but it will leave a stack line and it means the operator failed. I'd like to leave this as-is without having error in the return path for backporting.

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jul 12, 2021
@marun
Copy link

marun commented Jul 12, 2021

/hold for other reviewers
/retest

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 12, 2021
@stlaz
Copy link
Member

stlaz commented Jul 12, 2021

/lgtm
(remove hold if 2 reviewers are enough)

@openshift-ci
Copy link

openshift-ci bot commented Jul 12, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: deads2k, marun, stlaz

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@deads2k deads2k removed backports/unvalidated-commits Indicates that not all commits come to merged upstream PRs. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. labels Jul 12, 2021
@deads2k
Copy link
Author

deads2k commented Jul 12, 2021

/cherry-pick release-4.8

@openshift-cherrypick-robot

@deads2k: once the present PR merges, I will cherry-pick it on top of release-4.8 in a new PR and assign it to you.

In response to this:

/cherry-pick release-4.8

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

6 similar comments
@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-cherrypick-robot

@deads2k: new pull request created: #856

In response to this:

/cherry-pick release-4.8

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants