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

Align the encryption flags #858

Merged
merged 4 commits into from
Oct 2, 2023
Merged

Conversation

ReToCode
Copy link
Member

@ReToCode ReToCode commented Sep 14, 2023

Changes

I'd argue that its ok to drop the dataplane-& controlplane-trust flags, as they are clearly marked as ALPHA. IMHO, Introducing backward compatibility for those would make it really unread and unmaintainable. Also we have not implemented this feature and various values of those, so it's basically not possible to be reverse compatible.

/kind cleanup

Partially fixes knative/serving#14368

Release Note

Renames the flags that control encryption
- `auto-tls` is now named `external-domain-tls`
- `internal-encryption` is now named `system-internal-tls`
- `cluster-local-domain-tls` is introduced as a new alpha state flag to control TLS certificates for cluster-local domains

Docs
PRs for docs will follow separately in knative/serving#14368

@knative-prow knative-prow bot added the kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. label Sep 14, 2023
@knative-prow knative-prow bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Sep 14, 2023
@ReToCode
Copy link
Member Author

/assign @dprotaso
/assign @KauzClay
/assign @nak3

@codecov
Copy link

codecov bot commented Sep 14, 2023

Codecov Report

Attention: 7 lines in your changes are missing coverage. Please review.

Comparison is base (50368a7) 82.26% compared to head (0ad79f2) 82.30%.
Report is 8 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #858      +/-   ##
==========================================
+ Coverage   82.26%   82.30%   +0.03%     
==========================================
  Files          45       45              
  Lines        1720     1729       +9     
==========================================
+ Hits         1415     1423       +8     
+ Misses        264      263       -1     
- Partials       41       43       +2     
Files Coverage Δ
pkg/apis/networking/metadata_validation.go 100.00% <ø> (ø)
pkg/apis/networking/register.go 0.00% <0.00%> (ø)
pkg/config/config.go 83.09% <86.84%> (+3.29%) ⬆️

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ReToCode
Copy link
Member Author

About the expected CI errors:

I see the following options

  • Keep the dropped flags here (without handling the compatibility stuff), rework all repos, then drop them here in a new PR
  • YOLO - ignore it for now, fix it after follup-PRs on Serving + net-contour are through

We'd need to do both approaches our configuration would be broken for a short time period. And we'd need to do the fixes in a short time period and before the release.

Opinions?

@KauzClay
Copy link
Contributor

KauzClay commented Sep 14, 2023

I think I could go for

ignore it for now, fix it after follup-PRs on Serving + net-contour are through

I can get some quick PRs for serving and net-contour to use your new stuff ready. That way it can get into a passing state. And then we can move on to do the proper support of everything?

@knative-prow-robot knative-prow-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Sep 18, 2023
@nak3
Copy link
Contributor

nak3 commented Sep 19, 2023

I'd argue that its ok to drop the dataplane-& controlplane-trust flags, as they are clearly marked as ALPHA. IMHO, Introducing backward compatibility for those would make it really unread and unmaintainable. Also we have not implemented this feature and various values of those, so it's basically not possible to be reverse compatible.

I would like to get approval from TOC just in case. Otherwise LGTM.

@ReToCode
Copy link
Member Author

@knative/technical-oversight-committee @dprotaso Could you please take a look: #858 (comment)

@dprotaso
Copy link
Member

dprotaso commented Sep 20, 2023

I would like to get approval from TOC just in case.

TOC wouldn't make this call - just leads/approvers of the WG. It's an alpha feature so I don't think we should worry about the renaming.

pkg/apis/networking/register.go Show resolved Hide resolved
pkg/apis/networking/register.go Outdated Show resolved Hide resolved
ControlplaneTrustKey = "controlplane-trust"
// KnativeInternalTLSKey is the name of the configuration whether
// knative internal traffic is encrypted or not.
KnativeInternalTLSKey = "knative-internal-tls"
Copy link
Member

Choose a reason for hiding this comment

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

Circling back on this name I wonder if we should call this

Suggested change
KnativeInternalTLSKey = "knative-internal-tls"
InternalComponentTLSKey = "internal-component-tls"

Otherwise having knative in the key name seems unnecessary since the operator knows we're configuring something about knative and internal alone isn't specific enough

Copy link
Member Author

Choose a reason for hiding this comment

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

Hm I get the knative part, but I'm not super convinced with the component part (it seems a bit generic, which components?). Maybe something like this?

  • internal-communication-tls
  • system-internal-tls

Copy link
Contributor

@KauzClay KauzClay Sep 21, 2023

Choose a reason for hiding this comment

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

I think I like system-internal-tls

internal-communication-tls still feels like it bleeds into cluster-local-domain-tls or whatever we're calling that one.

Copy link
Member

Choose a reason for hiding this comment

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

Cool let's use system-internal-tls

Copy link
Member Author

Choose a reason for hiding this comment

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

Great, updated it to system-internal-tls.
@KauzClay mind updating your two WIP PRs before we merge this here?

@dprotaso
Copy link
Member

/lgtm
/approve
/hold

@ReToCode will let you unhold

@knative-prow knative-prow bot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. lgtm Indicates that a PR is ready to be merged. labels Sep 25, 2023
@knative-prow
Copy link

knative-prow bot commented Sep 25, 2023

[APPROVALNOTIFIER] This PR is APPROVED

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

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

@knative-prow knative-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 25, 2023
@ReToCode
Copy link
Member Author

ReToCode commented Oct 2, 2023

/unhold

@dprotaso can you override the failed checks?

@knative-prow knative-prow bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 2, 2023
@dprotaso
Copy link
Member

dprotaso commented Oct 2, 2023

/override "Unit Test (knative/serving)"
/override "Unit Test (knative-extensions/net-contour)"

@knative-prow
Copy link

knative-prow bot commented Oct 2, 2023

@dprotaso: Overrode contexts on behalf of dprotaso: Unit Test (knative-extensions/net-contour), Unit Test (knative/serving)

In response to this:

/override "Unit Test (knative/serving)"
/override "Unit Test (knative-extensions/net-contour)"

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
Copy link
Member

dprotaso commented Oct 2, 2023

/override "style / Golang / Lint"

@knative-prow
Copy link

knative-prow bot commented Oct 2, 2023

@dprotaso: Overrode contexts on behalf of dprotaso: style / Golang / Lint

In response to this:

/override "style / Golang / Lint"

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 merged commit 05d0964 into knative:main Oct 2, 2023
28 of 31 checks passed
knative-prow bot pushed a commit to knative-extensions/net-contour that referenced this pull request Oct 3, 2023
* use new internal TLS names

* update deps
knative-automation added a commit to knative-automation/serving that referenced this pull request Oct 3, 2023
bumping knative.dev/net-contour d0422bc...bc7c9d1:
  > bc7c9d1 use new encryption flags from knative/networking#858 (# 958)

Signed-off-by: Knative Automation <automation@knative.team>
knative-prow bot pushed a commit to knative/serving that referenced this pull request Oct 4, 2023
bumping knative.dev/net-contour d0422bc...bc7c9d1:
  > bc7c9d1 use new encryption flags from knative/networking#858 (# 958)

Signed-off-by: Knative Automation <automation@knative.team>
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/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm Indicates that a PR is ready to be merged. 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.

Align flag naming according to the discussion
5 participants