Skip to content

Use RBAC while connecting ovn-controllers to SB database#541

Draft
slawqo wants to merge 3 commits intoopenstack-k8s-operators:mainfrom
slawqo:issue/OSPRH-1922
Draft

Use RBAC while connecting ovn-controllers to SB database#541
slawqo wants to merge 3 commits intoopenstack-k8s-operators:mainfrom
slawqo:issue/OSPRH-1922

Conversation

@slawqo
Copy link
Copy Markdown
Contributor

@slawqo slawqo commented Mar 20, 2026

This patch configures RBAC to access OVN SB databases so that ovn-controllers now have limited access to this DB and will only be able to modify its own data.

On the other hand Northd requires "full access" to the SB DB, and to achieve that there is another DB listener created on port 16642 for to be used by northd.

More info about OVN RBAC can be found in its documentation at [1].

[1] https://docs.ovn.org/en/latest/tutorials/ovn-rbac.html

Related: #OSPRH-1921
Closes: #OSPRH-1922

@openshift-ci openshift-ci bot requested review from averdagu and dprince March 20, 2026 14:27
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Mar 20, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: slawqo

The full list of commands accepted by this bot can be found here.

The pull request process is described 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

@softwarefactory-project-zuul
Copy link
Copy Markdown

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://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/8881a8dd8a39461b9ead8d3463084988

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 44m 44s
ovn-operator-tempest-multinode FAILURE in 1h 25m 57s

@softwarefactory-project-zuul
Copy link
Copy Markdown

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.
Warning:
Error merging github.com/openstack-k8s-operators/ovn-operator for 541,afae1d8f2f153534b28de9d99d9329592503bbee

@softwarefactory-project-zuul
Copy link
Copy Markdown

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://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/488938ee0adc4b9487ec13c9295691f0

✔️ openstack-k8s-operators-content-provider SUCCESS in 45m 25s
ovn-operator-tempest-multinode FAILURE in 27m 07s

@slawqo slawqo force-pushed the issue/OSPRH-1922 branch from 89eeff9 to d4fdeb5 Compare April 2, 2026 09:13
@softwarefactory-project-zuul
Copy link
Copy Markdown

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://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/654e83d776ca4981a32478cb381b8b58

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 26m 19s
ovn-operator-tempest-multinode FAILURE in 1h 05m 45s

@slawqo slawqo force-pushed the issue/OSPRH-1922 branch from d4fdeb5 to c2aa939 Compare April 7, 2026 08:41
@slawqo
Copy link
Copy Markdown
Contributor Author

slawqo commented Apr 7, 2026

/retest

@softwarefactory-project-zuul
Copy link
Copy Markdown

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://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/3ea8ac21e62a4d3687373043b2aac30c

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 35m 08s
ovn-operator-tempest-multinode FAILURE in 1h 09m 05s

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Apr 7, 2026

@slawqo: 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/precommit-check c2aa939 link true /test precommit-check
ci/prow/ovn-operator-build-deploy-kuttl c2aa939 link true /test ovn-operator-build-deploy-kuttl

Full PR test history. Your PR dashboard.

Details

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.

slawqo added 3 commits April 7, 2026 16:44
This cert will be then used to sign "per chassis" certificates used by
the ovn-controllers to connect to the DB with OVN RBAC enabled [1].

[1] https://docs.ovn.org/en/latest/tutorials/ovn-rbac.html

Related: #OSPRH-1922

Assisted-by: claude-opus-4.6

Signed-off-by: Slawek Kaplonski <skaplons@redhat.com>
With this patch instead of using the same SSL certificate by each of the
ovn-controller PODs in the environment, there is separate certificate
generated, with uniq CN name which match system-id set in that chassis
and signed with certificate from SB.
That way OVN RBAC can be used for the connections from ovn-controller
PODs to the OVS SB database.

Related: #1922

Assisted-by: claude-opus-4.6

Signed-off-by: Slawek Kaplonski <skaplons@redhat.com>
This patch configures RBAC to access OVN SB databases so that
ovn-controllers now have limited access to this DB and will only be able
to modify its own data.

On the other hand Northd requires "full access" to the SB DB, and to
achieve that there is another DB listener created on port 16642 for
to be used by northd.

More info about OVN RBAC can be found in its documentation at [1].

[1] https://docs.ovn.org/en/latest/tutorials/ovn-rbac.html

Related: #1922

Assisted-by: claude-opus-4.6

Signed-off-by: Slawek Kaplonski <skaplons@redhat.com>
@slawqo slawqo force-pushed the issue/OSPRH-1922 branch from c2aa939 to fd93761 Compare April 7, 2026 14:44
@softwarefactory-project-zuul
Copy link
Copy Markdown

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://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/3020f70e344a4bf2a149888db9ae7484

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 50m 20s
ovn-operator-tempest-multinode FAILURE in 1h 30m 56s

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.

1 participant