Skip to content

rgw: make secret cache separately configurable and provide options to disable. - #27170

Closed
mdw-at-linuxbox wants to merge 1 commit into
ceph:masterfrom
mdw-at-linuxbox:wip-rgw-master-optisk
Closed

mdw-at-linuxbox wants to merge 1 commit into
ceph:masterfrom
mdw-at-linuxbox:wip-rgw-master-optisk

Conversation

@mdw-at-linuxbox

Copy link
Copy Markdown
Contributor

rgw: keystone: options to separately size or disable the keystone secret cache

A new configuration option "rgw_keystone_secret_cache_size" is provided to
control the size of the secret cache independently of the keystone cache.
Because users can easily make multiple keystone tokens (in some cases
a new token is created on every access), the keystone cache may need
a fairly large size in order to be effective.  The secret cache never
needs to be larger than the number of active users.

When "rgw_keystone_secret_cache_size" is set to zero the secret
cache is entirely disabled.  This forces rgw to always use the token
validation logic that used to be the only way to operate.  Sites that
are particularly security conscious may require this mode of operation.
This option may be changed dynamically at runtime without restarting rgw.

Sites that are particularly concerned about security may want to provably
and entirely remove the logic that fetches secret keys from keystone.
The compile-time option "ENABLE_KEYSTONE_SECRET_CACHE=OFF" will remove
the code that uses the secret cache at build time.  Some parts of the
secret cache are left in order to simplify the ifdef logic.

Signed-off-by: Marcus Watts <[email protected]>

@mattbenjamin
mattbenjamin self-requested a review March 25, 2019 19:58
…ret cache

A new configuration option "rgw_keystone_secret_cache_size" is provided to
control the size of the secret cache independently of the keystone cache.
Because users can easily make multiple keystone tokens (in some cases
a new token is created on every access), the keystone cache may need
a fairly large size in order to be effective.  The secret cache never
needs to be larger than the number of active users.

When "rgw_keystone_secret_cache_size" is set to zero the secret
cache is entirely disabled.  This forces rgw to always use the token
validation logic that used to be the only way to operate.  Sites that
are particularly security conscious may require this mode of operation.
This option may be changed dynamically at runtime without restarting rgw.

Sites that are particularly concerned about security may want to provably
and entirely remove the logic that fetches secret keys from keystone.
The compile-time option "ENABLE_KEYSTONE_SECRET_CACHE=OFF" will remove
the code that uses the secret cache at build time.  Some parts of the
secret cache are left in order to simplify the ifdef logic.

Signed-off-by: Marcus Watts <[email protected]>
@mdw-at-linuxbox

Copy link
Copy Markdown
Contributor Author

My first push of this had commits from
#26095
that were separately merged while I was making this PR. I've factored those out and repushed. I haven't tried building this - so certainly needs testing!

@stale

stale Bot commented May 24, 2019

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days.
If you are a maintainer or core committer, please follow-up on this pull request to identify what steps should be taken by the author to move this proposed change forward.
If you are the author of this pull request, thank you for your proposed contribution. If you believe this change is still appropriate, please ensure that any feedback has been addressed and ask for a code review.

@stale stale Bot added the stale label May 24, 2019
@stale

stale Bot commented Aug 22, 2019

Copy link
Copy Markdown

This pull request has been automatically closed because there has been no activity for 90 days. Please feel free to reopen this pull request (or open a new one) if the proposed change is still appropriate. Thank you for your contribution!

@stale stale Bot closed this Aug 22, 2019
@cbodley

cbodley commented Jan 21, 2020

Copy link
Copy Markdown
Contributor

@mdw-at-linuxbox @mattbenjamin do we still need this?

@cbodley

cbodley commented Feb 12, 2020

Copy link
Copy Markdown
Contributor

ping @mdw-at-linuxbox @mattbenjamin

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.

3 participants