Skip to content
This repository was archived by the owner on Apr 30, 2024. It is now read-only.

wip: use domain + constant as common name in certificate - #472

Closed
KauzClay wants to merge 4 commits into
knative-extensions:mainfrom
KauzClay:ck-short-common-name
Closed

KauzClay wants to merge 4 commits into
knative-extensions:mainfrom
KauzClay:ck-short-common-name

Conversation

@KauzClay

@KauzClay KauzClay commented Jan 6, 2023 •

Copy link
Copy Markdown
Contributor

Changes

/kind bug

Fixes # #214

Release Note

TBD: Certificates created will use shortened Common Name

Docs

TODO: make docs on this change

@knative-prow

knative-prow Bot commented Jan 6, 2023

Copy link
Copy Markdown

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@knative-prow knative-prow Bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. kind/bug Categorizes issue or PR as related to a bug. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jan 6, 2023
@KauzClay KauzClay changed the title use domain + constant as common name in certificate wip: use domain + constant as common name in certificate Jan 6, 2023
@knative-prow knative-prow Bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jan 9, 2023
@KauzClay
KauzClay force-pushed the ck-short-common-name branch from cd7c2be to 2649aac Compare January 9, 2023 22:43
@knative-prow-robot knative-prow-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 12, 2023
@KauzClay

Copy link
Copy Markdown
Contributor Author

/assign @evankanderson

@knative-prow

knative-prow Bot commented Jan 13, 2023

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: KauzClay
Once this PR has been reviewed and has the lgtm label, please ask for approval from evankanderson by writing /assign @evankanderson in a comment. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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

@KauzClay
KauzClay force-pushed the ck-short-common-name branch 2 times, most recently from b1cbe8a to d68e9b6 Compare January 13, 2023 18:05
@knative-prow-robot knative-prow-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 13, 2023
@KauzClay
KauzClay force-pushed the ck-short-common-name branch from d68e9b6 to 910fafb Compare January 17, 2023 15:31
knative-prow Bot pushed a commit that referenced this pull request Jan 24, 2023
* use domain + constant as common name

* reduces odds that common name is larger than 64 bytes

* wip: make commonname template configurable

* trim common name to always be valid length

* use kmeta.ChildName to achieve this

* wip: only use domain if commonName is too long

* fix unit tests

* add an empty go.mod to third_party to ignore code files in this directory

* ran hack/update-deps

* if dnsName has no challenger service check other ready certs

* list all certs when checking for dnsEntries

* bump knative.dev/networking with the http01 conformance test fix

* only find matching _ready_ certs with matching DNS names

Co-authored-by: Clay Kauzlaric <[email protected]>
@evankanderson

Copy link
Copy Markdown
Contributor

/close

Merged in #478

@knative-prow

knative-prow Bot commented Jan 24, 2023

Copy link
Copy Markdown

@evankanderson: Closed this PR.

Details

In response to this:

/close

Merged in #478

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 closed this Jan 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. kind/bug Categorizes issue or PR as related to a bug. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants