-
Notifications
You must be signed in to change notification settings - Fork 25
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
Conversation
controllers/barbican_controller.go
Outdated
"ServiceURL": "TODO", | ||
"TransportURL": string(transportURLSecret.Data["transport_url"]), | ||
"LogFile": fmt.Sprintf("%s%s.log", barbican.BarbicanLogPath, instance.Name), | ||
"enableSecureRBAC": instance.Spec.BarbicanAPI.EnableSecureRBAC, |
There was a problem hiding this comment.
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"
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
There was a problem hiding this 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
40dcaf1
to
cda44d6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
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