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

[tlse] tls for ManilaAPI pod configuration #212

Merged

Conversation

Deydra71
Copy link
Contributor

@Deydra71 Deydra71 commented Jan 18, 2024

Public/Internal service cert secrets and the CA bundle secret can be passed to configure httpd virtual hosts for tls termination. The certs get direct mounted to the appropriate place in etc/pki/tls/certs/%s.crt|key and a CA bundle to /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem . Job deployments for bootstrap/cron get the CA bundle added if configured.

Depends-On: openstack-k8s-operators/lib-common#428

Jira: OSPRH-3883

Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://review.rdoproject.org/zuul/buildset/28f2cca960ee425dbc9f0ec968359b4c

openstack-k8s-operators-content-provider FAILURE in 8m 14s
⚠️ manila-operator-kuttl SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider (non-voting)

config/samples/manila_v1beta1_manila_tls.yaml Outdated Show resolved Hide resolved
config/samples/manila_v1beta1_manila_tls.yaml Outdated Show resolved Hide resolved
controllers/manila_controller.go Outdated Show resolved Hide resolved
controllers/manilaapi_controller.go Outdated Show resolved Hide resolved
controllers/manilaapi_controller.go Outdated Show resolved Hide resolved
pkg/manilaapi/statefulset.go Outdated Show resolved Hide resolved
pkg/manilaapi/statefulset.go Outdated Show resolved Hide resolved
pkg/manilaapi/statefulset.go Outdated Show resolved Hide resolved
pkg/manilaapi/statefulset.go Outdated Show resolved Hide resolved
templates/manila/config/10-manila_wsgi.conf Outdated Show resolved Hide resolved
@Deydra71 Deydra71 force-pushed the tls-support branch 3 times, most recently from 57e0012 to 843ec84 Compare February 5, 2024 15:53
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://review.rdoproject.org/zuul/buildset/98e14a2cad31445a9de819cca60573af

openstack-k8s-operators-content-provider FAILURE in 8m 02s
⚠️ manila-operator-kuttl SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider (non-voting)

Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://review.rdoproject.org/zuul/buildset/751b060f9ed343f7bd7f223b7298086f

openstack-k8s-operators-content-provider FAILURE in 7m 59s
⚠️ manila-operator-kuttl SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider (non-voting)

Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://review.rdoproject.org/zuul/buildset/28566864fb9941f9bcd3f767d693d652

openstack-k8s-operators-content-provider FAILURE in 8m 47s
⚠️ manila-operator-kuttl SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider (non-voting)

@Deydra71 Deydra71 force-pushed the tls-support branch 2 times, most recently from 01a4605 to 3864f7f Compare February 7, 2024 08:54
@Deydra71
Copy link
Contributor Author

Deydra71 commented Feb 7, 2024 via email

config/samples/manila_v1beta1_manilaapi.yaml Outdated Show resolved Hide resolved
controllers/manila_controller.go Outdated Show resolved Hide resolved
pkg/manilaapi/statefulset.go Outdated Show resolved Hide resolved
pkg/manilaapi/statefulset.go Outdated Show resolved Hide resolved
Copy link
Contributor

@stuggi stuggi left a comment

Choose a reason for hiding this comment

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

looks good to me, just could extend the tests as we did in other operators as mentioned inline

test/functional/manila_controller_test.go Show resolved Hide resolved
Deydra71 added a commit to Deydra71/openstack-operator that referenced this pull request Feb 9, 2024
Creates certs for k8s service of the service operator when
spec.tls.endpoint.internal.enabled: true

For a service like nova which talks to multiple service internal
endpoints, this has to be set for each of them for, like:

~~~
  customServiceConfig: |
    [keystone_authtoken]
    insecure = true
    [placement]
    insecure = true
    [neutron]
    insecure = true
    [glance]
    insecure = true
    [cinder]
    insecure = true
~~~

Depends-On: openstack-k8s-operators/lib-common#428
Depends-On: openstack-k8s-operators#620
Depends-On: openstack-k8s-operators/manila-operator#212

Signed-off-by: Veronika Fisarova <[email protected]>
@stuggi
Copy link
Contributor

stuggi commented Feb 9, 2024

/test manila-operator-build-deploy-kuttl

@stuggi
Copy link
Contributor

stuggi commented Feb 9, 2024

looks good to me. @fmount if you are happy with it, we could merge it

@stuggi stuggi added the lgtm label Feb 9, 2024
Copy link
Collaborator

@fmount fmount left a comment

Choose a reason for hiding this comment

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

/lgtm

test/functional/manila_controller_test.go Outdated Show resolved Hide resolved
@fmount
Copy link
Collaborator

fmount commented Feb 9, 2024

Thank you @Deydra71 for this work and @stuggi for the many reviews!

Copy link
Contributor

openshift-ci bot commented Feb 9, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Deydra71, fmount

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

@openshift-ci openshift-ci bot added the approved label Feb 9, 2024
Public/Internal service cert secrets and the CA bundle secret can be passed to configure httpd virtual hosts for tls termination. The certs get direct mounted to the appropriate place in etc/pki/tls/certs/%s.crt|key and a CA bundle to
/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem . Job deployments for bootstrap/cron get the CA bundle added if configured.

Depends-On: openstack-k8s-operators/lib-common#428

Signed-off-by: Veronika Fisarova <[email protected]>
Copy link
Contributor

openshift-ci bot commented Feb 9, 2024

New changes are detected. LGTM label has been removed.

@fmount
Copy link
Collaborator

fmount commented Feb 9, 2024

/test manila-operator-build-deploy-tempest

@stuggi stuggi added the lgtm label Feb 12, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit 91c953f into openstack-k8s-operators:main Feb 12, 2024
9 checks passed
Deydra71 added a commit to Deydra71/openstack-operator that referenced this pull request Feb 12, 2024
Creates certs for k8s service of the service operator when
spec.tls.endpoint.internal.enabled: true

For a service like nova which talks to multiple service internal
endpoints, this has to be set for each of them for, like:

~~~
  customServiceConfig: |
    [keystone_authtoken]
    insecure = true
    [placement]
    insecure = true
    [neutron]
    insecure = true
    [glance]
    insecure = true
    [cinder]
    insecure = true
~~~

Depends-On: openstack-k8s-operators/lib-common#428
Depends-On: openstack-k8s-operators#620
Depends-On: openstack-k8s-operators/manila-operator#212

Signed-off-by: Veronika Fisarova <[email protected]>
Deydra71 added a commit to Deydra71/openstack-operator that referenced this pull request Feb 12, 2024
Creates certs for k8s service of the service operator when
spec.tls.endpoint.internal.enabled: true

For a service like nova which talks to multiple service internal
endpoints, this has to be set for each of them for, like:

~~~
  customServiceConfig: |
    [keystone_authtoken]
    insecure = true
    [placement]
    insecure = true
    [neutron]
    insecure = true
    [glance]
    insecure = true
    [cinder]
    insecure = true
~~~

Depends-On: openstack-k8s-operators/lib-common#428
Depends-On: openstack-k8s-operators#620
Depends-On: openstack-k8s-operators/manila-operator#212

Signed-off-by: Veronika Fisarova <[email protected]>
stuggi pushed a commit to stuggi/openstack-operator that referenced this pull request Feb 13, 2024
Creates certs for k8s service of the service operator when
spec.tls.endpoint.internal.enabled: true

For a service like nova which talks to multiple service internal
endpoints, this has to be set for each of them for, like:

~~~
  customServiceConfig: |
    [keystone_authtoken]
    insecure = true
    [placement]
    insecure = true
    [neutron]
    insecure = true
    [glance]
    insecure = true
    [cinder]
    insecure = true
~~~

Depends-On: openstack-k8s-operators/lib-common#428
Depends-On: openstack-k8s-operators#620
Depends-On: openstack-k8s-operators/manila-operator#212

Signed-off-by: Veronika Fisarova <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants