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

OSASINFRA-3657: Add support for storing OpenStack CA bundles #780

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stephenfin
Copy link

If a CA bundle is required to talk to your OpenStack then obviously all services that talk to the cloud need to have both credentials and said bundle. Currently, these users can get their credentials via cloud credential operator, but they need to source their CA bundle from elsewhere (typically by extracting it from the cloud controller manager's configuration). This makes configuration of services more complicated than necessary.

Begin the resolution of the issue by allowing users (i.e. the Installer) to store the CA bundle in their root secret and dole this out to anyone who asks for it via a CredentialsRequest. Follow-up changes will be needed in places like the Installer and csi-operator to start setting/consuming this.

If a CA bundle is required to talk to your OpenStack then obviously all
services that talk to the cloud need to have both credentials and said
bundle. Currently, these users can get their credentials via cloud
credential operator, but they need to source their CA bundle from
elsewhere (typically by extracting it from the cloud controller
manager's configuration). This makes configuration of services more
complicated than necessary.

Begin the resolution of the issue by allowing users (i.e. the Installer)
to store the CA bundle in their root secret and dole this out to anyone
who asks for it via a CredentialsRequest.

Follow-up changes will be needed in places like the Installer and
csi-operator to start setting/consuming this.

Signed-off-by: Stephen Finucane <[email protected]>
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Nov 8, 2024

@stephenfin: This pull request references OSASINFRA-3657 which is a valid jira issue.

In response to this:

If a CA bundle is required to talk to your OpenStack then obviously all services that talk to the cloud need to have both credentials and said bundle. Currently, these users can get their credentials via cloud credential operator, but they need to source their CA bundle from elsewhere (typically by extracting it from the cloud controller manager's configuration). This makes configuration of services more complicated than necessary.

Begin the resolution of the issue by allowing users (i.e. the Installer) to store the CA bundle in their root secret and dole this out to anyone who asks for it via a CredentialsRequest. Follow-up changes will be needed in places like the Installer and csi-operator to start setting/consuming this.

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Nov 8, 2024
@openshift-ci openshift-ci bot requested a review from EmilienM November 8, 2024 18:09
@stephenfin
Copy link
Author

/cc @mandre

@openshift-ci openshift-ci bot requested review from mandre, 2uasimojo and dlom November 8, 2024 18:09
Copy link
Contributor

openshift-ci bot commented Nov 8, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: stephenfin
Once this PR has been reviewed and has the lgtm label, please assign dlom for approval. For more information see the Kubernetes Code Review Process.

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

Copy link

codecov bot commented Nov 8, 2024

Codecov Report

Attention: Patch coverage is 46.66667% with 8 lines in your changes missing coverage. Please review.

Project coverage is 47.01%. Comparing base (a466300) to head (93c3429).
Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
pkg/openstack/actuator.go 0.00% 5 Missing ⚠️
pkg/openstack/utils.go 62.50% 2 Missing and 1 partial ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #780      +/-   ##
==========================================
- Coverage   47.03%   47.01%   -0.03%     
==========================================
  Files          97       97              
  Lines       11835    11838       +3     
==========================================
- Hits         5567     5566       -1     
- Misses       5655     5658       +3     
- Partials      613      614       +1     
Files with missing lines Coverage Δ
...g/operator/secretannotator/openstack/reconciler.go 55.11% <100.00%> (ø)
pkg/openstack/utils.go 53.84% <62.50%> (-12.83%) ⬇️
pkg/openstack/actuator.go 0.00% <0.00%> (ø)

Copy link
Contributor

openshift-ci bot commented Nov 8, 2024

@stephenfin: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-aws-ovn 93c3429 link true /test e2e-aws-ovn
ci/prow/security 93c3429 link true /test security
ci/prow/e2e-hypershift 93c3429 link true /test e2e-hypershift

Full PR test history. Your PR dashboard.

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. I understand the commands that are listed here.

stephenfin added a commit to shiftstack/installer that referenced this pull request Nov 11, 2024
If a CA bundle is required to talk to your OpenStack then obviously all
services that talk to the cloud need to have both credentials and said
bundle. Currently, these users can get their credentials via cloud
credential operator, but they need to source their CA bundle from
elsewhere (typically by extracting it from the cloud controller
manager's configuration). This makes configuration of services more
complicated than necessary.

Continue the resolution of the issue by storing the CA bundle, if any,
in the root secret on OpenStack. When coupled with the changes
introduced in openshift/cloud-credential-operator#780 [1], this allows
us to dole out the bundle to anyone who asks for it via a
'CredentialsRequest'.

[1] openshift/cloud-credential-operator#780

Signed-off-by: Stephen Finucane <[email protected]>
@stephenfin
Copy link
Author

/hold

Will wait for 4.19 for this.

@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 Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants