Repository navigation
rgw: Policy evalaution logging - #67732
Conversation
Config Diff Tool Output+ added: rgw_copious_policy_logging (rgw.yaml.in)
The above configuration changes are found in the PR. Please update the relevant release documentation if necessary. |
|
/config check ok |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
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. |
822ea77 to
9620625
Compare
|
jenkins test windows |
9620625 to
315adda
Compare
|
I think this will be a really useful feature for users and operators! (thanks for adding this in) I had one question about the backport tags i see in the tracker - It looks like this is being tagged/considered for backports to Tentacle and Umbrella. Since this is a feature rather than a bug fix, could you clarify the reasoning for backporting it? Are features normally backported in this case? And if we do want to backport it, should we consider all supported releases - so including Squid as well, rather than only Tentacle/Umbrella? |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
315adda to
b39f62c
Compare
The backport to squid is a good deal more disruptive. |
There is precedent, but that doesn't mean they should be routinely. My sense is that historically it's been case-by-case. |
mheler
left a comment
There was a problem hiding this comment.
LGTM, some doc nits to take care of though.
b39f62c to
d399730
Compare
39f98ee to
1a6bc63
Compare
1a6bc63 to
65324bf
Compare
|
@BBoozmen Added PrincipalIdentity to make poltester/policy testing better match the server, if you want to take another look. |
| } | ||
|
|
||
| bool | ||
| PrincipalIdentity::is_identity(const Principal& p) const |
There was a problem hiding this comment.
Would a wildcard identity nullify NotPrincipal deny statements?
There was a problem hiding this comment.
No, it would trigger it.
Though 'Wildcard Identity' would only show up in the context of someone specifying one to rgw-policy-test, rather than in live RGW. So an 'imaginary' identity that can be constructed in a test if you want but doesn't correspond to anything RGW will ever see. (And PrincipalIdentity is explicitly not used in actual RGW. I could make the comment more explicit.)
Typo in a lookup table. Signed-off-by: Adam C. Emerson <[email protected]>
Signed-off-by: Adam C. Emerson <[email protected]>
Signed-off-by: Adam C. Emerson <[email protected]>
Create a log entry where we can fill a buffer with `format` instead of needing to go through stringstream. Signed-off-by: Adam C. Emerson <[email protected]>
Signed-off-by: Adam C. Emerson <[email protected]>
Signed-off-by: Adam C. Emerson <[email protected]>
When the `rgw_copious_policy_logging` option is set to true, a detailed trace of policy evaluation is logged. Assisted-by: Claude Opus 4.6 <[email protected]> (I wanted to see how it performed on rebase conflict resolution.) Assisted-by: Claude Fable 5 <[email protected]> (I figured I should have it look at the policy evaluation code for bugs while it's included, and it found a few mistakes in output.) Signed-off-by: Adam C. Emerson <[email protected]>
This is an identity backed by a `Principal`, for use when we don't have any sort of RGW driver. Signed-off-by: Adam C. Emerson <[email protected]>
Annotated evaluation of a policy. Signed-off-by: Adam C. Emerson <[email protected]>
65324bf to
5a176d3
Compare
Add option
rgw copious policy loggingto dump a trace of policy evaluation to the log. Also addrgw-policy-testto verbosely evaluate policies from the command line.https://tracker.ceph.com/issues/77740
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.