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

Make Secure RBAC configurable #53

Merged
merged 1 commit into from
Dec 21, 2023
Merged

Make Secure RBAC configurable #53

merged 1 commit into from
Dec 21, 2023

Conversation

dmendiza
Copy link
Contributor

@dmendiza dmendiza commented Dec 8, 2023

This patch adds a new field to the BarbicanAPI spec to configure "Consistent and Secure RBAC" [1]. The API configuration template was modified to use the value in this field instead of being hard-coded to always be on.

Jira: OSPRH-2129

[1] https://governance.openstack.org/tc/goals/selected/consistent-and-secure-rbac.html

@dmendiza dmendiza requested review from vakwetu and xek December 8, 2023 20:20
"ServiceURL": "TODO",
"TransportURL": string(transportURLSecret.Data["transport_url"]),
"LogFile": fmt.Sprintf("%s%s.log", barbican.BarbicanLogPath, instance.Name),
"enableSecureRBAC": instance.Spec.BarbicanAPI.EnableSecureRBAC,
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: We should be consistent here and use "EnableSecureRBAC" instead of "enableSecureRBAC"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

"ServiceURL": "https://barbican.openstack.svc:9311",
"TransportURL": string(transportURLSecret.Data["transport_url"]),
"LogFile": fmt.Sprintf("%s%s.log", barbican.BarbicanLogPath, instance.Name),
"enableSecureRBAC": instance.Spec.EnableSecureRBAC,
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

Copy link
Contributor

@vakwetu vakwetu left a comment

Choose a reason for hiding this comment

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

Just a small nit on consistency of variable names. Lets fix that before we merge.
Otherwise, looks pretty straightforward.

This patch adds a new field to the BarbicanAPI spec to configure
"Consistent and Secure RBAC" [1].  The API configuration template was
modified to use the value in this field instead of being hard-coded to
always be on.

Jira: OSPRH-2129

[1] https://governance.openstack.org/tc/goals/selected/consistent-and-secure-rbac.html
Copy link
Contributor

@vakwetu vakwetu left a comment

Choose a reason for hiding this comment

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

/lgtm

@xek xek merged commit ba46202 into main Dec 21, 2023
10 checks passed
@dmendiza dmendiza deleted the secure-rbac branch February 9, 2024 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants