Skip to content

adjust domain validation in kcert - #754

Merged
knative-prow[bot] merged 1 commit into
knative:mainfrom
KauzClay:ck-fix-validation-for-kcert
Jan 18, 2023
Merged

knative-prow[bot] merged 1 commit into
knative:mainfrom
KauzClay:ck-fix-validation-for-kcert

Conversation

@KauzClay

@KauzClay KauzClay commented Jan 18, 2023 •

Copy link
Copy Markdown
Contributor

Changes

/kind bug

Fixes #

Release Note

N/A

Docs

N/A

@knative-prow knative-prow Bot added the kind/bug Categorizes issue or PR as related to a bug. label Jan 18, 2023
@knative-prow
knative-prow Bot requested review from andrew-su and yanweiguo January 18, 2023 20:48
@knative-prow knative-prow Bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jan 18, 2023
@KauzClay
KauzClay marked this pull request as draft January 18, 2023 20:49
@knative-prow knative-prow Bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jan 18, 2023
@codecov

codecov Bot commented Jan 18, 2023 •

Copy link
Copy Markdown

Codecov Report

Base: 94.80% // Head: 94.80% // No change to project coverage 👍

Coverage data is based on head (9a671cf) compared to base (dd05ffd).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #754   +/-   ##
=======================================
  Coverage   94.80%   94.80%           
=======================================
  Files          41       41           
  Lines        1231     1231           
=======================================
  Hits         1167     1167           
  Misses         52       52           
  Partials       12       12           
Impacted Files Coverage Δ
...apis/networking/v1alpha1/certificate_validation.go 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

}

if spec.Domain != "" && len(spec.DNSNames) != 0 {
suffix := "." + spec.Domain

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think we should leave the "." but just add an extra check to allow the case when dnsName == spec.Domain

@KauzClay
KauzClay force-pushed the ck-fix-validation-for-kcert branch from 8a66654 to 21a3ea7 Compare January 18, 2023 20:59
@knative-prow knative-prow Bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jan 18, 2023
@KauzClay
KauzClay marked this pull request as ready for review January 18, 2023 20:59
@knative-prow knative-prow Bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jan 18, 2023
@knative-prow
knative-prow Bot requested a review from ZhiminXiang January 18, 2023 20:59
* accept if domain exactly matches entry in dnsnames
@KauzClay
KauzClay force-pushed the ck-fix-validation-for-kcert branch from 21a3ea7 to 9a671cf Compare January 18, 2023 21:02
@dprotaso

Copy link
Copy Markdown
Member

/lgtm
/approve
/cherry-pick release-1.9

@knative-prow-robot

Copy link
Copy Markdown

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

Details

In response to this:

/lgtm
/approve
/cherry-pick release-1.9

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.

@knative-prow knative-prow Bot added the lgtm Indicates that a PR is ready to be merged. label Jan 18, 2023
@knative-prow

knative-prow Bot commented Jan 18, 2023

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dprotaso, KauzClay

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

The pull request process is described here

Details 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

@knative-prow knative-prow Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 18, 2023
@knative-prow
knative-prow Bot merged commit 4ccbe60 into knative:main Jan 18, 2023
@knative-prow-robot

Copy link
Copy Markdown

@dprotaso: new pull request created: #755

Details

In response to this:

/lgtm
/approve
/cherry-pick release-1.9

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.

dprotaso added a commit to dprotaso/serving that referenced this pull request Jan 19, 2023
This is a follow up on
knative#13569
since we've relaxed the validation for certificates
knative/networking#754
knative-prow Bot pushed a commit to knative/serving that referenced this pull request Jan 20, 2023
This is a follow up on
#13569
since we've relaxed the validation for certificates
knative/networking#754
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. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants