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

Configure TLS communication between registry cache and containerd #245

Merged

Conversation

dimitar-kostadinov
Copy link
Contributor

@dimitar-kostadinov dimitar-kostadinov commented Aug 27, 2024

How to categorize this PR?

/area security
/kind enhancement

What this PR does / why we need it:
Configure TLS communication between registry cache and containerd.

Which issue(s) this PR fixes:
Part of #203

Special notes for your reviewer:

Release note:

The communication between containerd and the registry cache is no longer over plain HTTP. The communication is now encrypted with TLS. The pull through cache is now served over HTTPS.

Copy link
Contributor

gardener-prow bot commented Aug 27, 2024

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

@gardener-prow gardener-prow bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. area/security Security related kind/enhancement Enhancement, improvement, extension cla: yes Indicates the PR's author has signed the cla-assistant.io CLA. labels Aug 27, 2024
@gardener-prow gardener-prow bot requested a review from ialidzhikov August 27, 2024 15:04
@gardener-prow gardener-prow bot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Aug 27, 2024
@ialidzhikov
Copy link
Member

/assign

@ialidzhikov ialidzhikov added area/ipcei IPCEI (Important Project of Common European Interest) ipcei/registry-cache-extension Registry Cache Extension labels Sep 11, 2024
@gardener-prow gardener-prow bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Sep 17, 2024
@gardener-ci-robot
Copy link

The Gardener project currently lacks enough active contributors to adequately respond to all PRs.
This bot triages PRs according to the following rules:

  • After 15d of inactivity, lifecycle/stale is applied
  • After 15d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 7d of inactivity since lifecycle/rotten was applied, the PR is closed

You can:

  • Mark this PR as fresh with /remove-lifecycle stale
  • Mark this PR as rotten with /lifecycle rotten
  • Close this PR with /close

/lifecycle stale

@gardener-prow gardener-prow bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Oct 2, 2024
@ialidzhikov
Copy link
Member

/remove-lifecycle stale

@gardener-prow gardener-prow bot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Oct 2, 2024
Copy link
Member

@ialidzhikov ialidzhikov left a comment

Choose a reason for hiding this comment

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

Thanks for the PR, @dimitar-kostadinov!

Sorry for the long delay! I am posting some very minor preliminary comments for now! I will do a more detailed review in CW42.

Can you meanwhile also rebase?

pkg/apis/registry/v1alpha3/types.go Outdated Show resolved Hide resolved
pkg/secrets/config.go Show resolved Hide resolved
pkg/apis/registry/v1alpha3/types.go Outdated Show resolved Hide resolved
pkg/component/registrycaches/templates/config.yml.tpl Outdated Show resolved Hide resolved
pkg/controller/cache/actuator.go Outdated Show resolved Hide resolved
pkg/webhook/cache/ensurer.go Outdated Show resolved Hide resolved
pkg/apis/registry/types.go Outdated Show resolved Hide resolved
pkg/apis/registry/v1alpha3/types.go Outdated Show resolved Hide resolved
@dimitar-kostadinov dimitar-kostadinov force-pushed the enh/enable_tls_communication branch from 724c96c to 594e1b5 Compare October 22, 2024 08:12
@gardener-prow gardener-prow bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 22, 2024
@dimitar-kostadinov dimitar-kostadinov force-pushed the enh/enable_tls_communication branch 2 times, most recently from 5432210 to f5d18df Compare October 22, 2024 08:23
@gardener-prow gardener-prow bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Oct 29, 2024
@dimitar-kostadinov dimitar-kostadinov force-pushed the enh/enable_tls_communication branch 2 times, most recently from 7807643 to 550cea1 Compare October 29, 2024 12:18
@dimitar-kostadinov dimitar-kostadinov marked this pull request as ready for review October 30, 2024 12:55
@gardener-prow gardener-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 Oct 30, 2024
@gardener-prow gardener-prow bot requested a review from ialidzhikov October 30, 2024 12:55
@ialidzhikov
Copy link
Member

/hold
until v0.12 is released

@gardener-prow gardener-prow bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 25, 2024
@ialidzhikov
Copy link
Member

/hold cancel
v0.12.0 is released

@gardener-prow gardener-prow bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 27, 2024
@dimitar-kostadinov dimitar-kostadinov force-pushed the enh/enable_tls_communication branch from 2c3f06e to 6d99ce3 Compare November 27, 2024 15:13
@gardener-prow gardener-prow bot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Nov 27, 2024
@dimitar-kostadinov dimitar-kostadinov force-pushed the enh/enable_tls_communication branch from 6d99ce3 to 2d0cdb3 Compare November 29, 2024 14:28
@gardener-prow gardener-prow bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 29, 2024
pkg/controller/cache/actuator.go Outdated Show resolved Hide resolved
pkg/controller/cache/actuator.go Outdated Show resolved Hide resolved
pkg/controller/cache/actuator.go Outdated Show resolved Hide resolved
pkg/webhook/cache/ensurer.go Outdated Show resolved Hide resolved
pkg/webhook/cache/ensurer.go Outdated Show resolved Hide resolved
pkg/webhook/cache/ensurer.go Outdated Show resolved Hide resolved
pkg/webhook/cache/ensurer.go Outdated Show resolved Hide resolved
pkg/utils/registry/registry.go Outdated Show resolved Hide resolved
@ialidzhikov
Copy link
Member

I will have a final look in CW51. I am again sorry for the delays in the reviews. But overall, PR looks great already!

pkg/webhook/cache/ensurer.go Show resolved Hide resolved
pkg/controller/cache/actuator.go Outdated Show resolved Hide resolved
pkg/controller/cache/actuator.go Outdated Show resolved Hide resolved
pkg/controller/cache/actuator.go Outdated Show resolved Hide resolved
pkg/component/registrycaches/registry_caches.go Outdated Show resolved Hide resolved
pkg/component/registrycaches/registry_caches.go Outdated Show resolved Hide resolved
pkg/component/registrycaches/registry_caches.go Outdated Show resolved Hide resolved
pkg/controller/cache/actuator.go Outdated Show resolved Hide resolved
@gardener-prow gardener-prow bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 10, 2024
@ialidzhikov ialidzhikov force-pushed the enh/enable_tls_communication branch from a41e2b7 to 128b87d Compare December 11, 2024 15:45
@gardener-prow gardener-prow bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 11, 2024
Copy link
Contributor Author

@dimitar-kostadinov dimitar-kostadinov left a comment

Choose a reason for hiding this comment

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

CA rotation TM test is OK:

Ran 1 of 3 Specs in 1110.913 seconds
SUCCESS! -- 1 Passed | 0 Failed | 0 Pending | 2 Skipped
--- PASS: TestShoot (1110.91s)
PASS
ok

/lgtm

Copy link
Contributor

gardener-prow bot commented Dec 12, 2024

@dimitar-kostadinov: you cannot LGTM your own PR.

In response to this:

CA rotation TM test is OK:

Ran 1 of 3 Specs in 1110.913 seconds
SUCCESS! -- 1 Passed | 0 Failed | 0 Pending | 2 Skipped
--- PASS: TestShoot (1110.91s)
PASS
ok

/lgtm

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-sigs/prow repository.

Copy link
Member

@ialidzhikov ialidzhikov left a comment

Choose a reason for hiding this comment

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

/lgtm

@gardener-prow gardener-prow bot added the lgtm Indicates that a PR is ready to be merged. label Dec 12, 2024
Copy link
Contributor

gardener-prow bot commented Dec 12, 2024

LGTM label has been added.

Git tree hash: 513886569c641150fd64bf9e7420571bb9d1c96f

Copy link
Contributor

gardener-prow bot commented Dec 12, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ialidzhikov

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

@gardener-prow gardener-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 12, 2024
@gardener-prow gardener-prow bot merged commit f614b47 into gardener:main Dec 12, 2024
6 checks passed
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. area/ipcei IPCEI (Important Project of Common European Interest) area/security Security related cla: yes Indicates the PR's author has signed the cla-assistant.io CLA. ipcei/registry-cache-extension Registry Cache Extension kind/enhancement Enhancement, improvement, extension lgtm Indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants