HDDS-10460. Refine audit logging for bucket property updation operations#6329
HDDS-10460. Refine audit logging for bucket property updation operations#6329adoroszlai merged 6 commits intoapache:masterfrom
Conversation
adoroszlai
left a comment
There was a problem hiding this comment.
Thanks @tanvipenumudy for the patch.
…elpers/OmBucketArgs.java Co-authored-by: Doroszlai, Attila <6454655+adoroszlai@users.noreply.github.com>
…elpers/OmBucketArgs.java Co-authored-by: Doroszlai, Attila <6454655+adoroszlai@users.noreply.github.com>
…elpers/OmBucketArgs.java Co-authored-by: Doroszlai, Attila <6454655+adoroszlai@users.noreply.github.com>
myskov
left a comment
There was a problem hiding this comment.
Thanks for the patch @tanvipenumudy , LGTM
There was a problem hiding this comment.
Thanks again @tanvipenumudy for the patch.
On another look, similar change is needed in OmBucketInfo, which is used as source of audit data during bucket creation:
Quotas and default replication config need to be added (please double-check I did not miss anything).
It is OK to make these additional changes in follow-up PR if you prefer, since the task is currently specific to property update operations.
Thank you @adoroszlai and @myskov for the reviews. I have filed a ticket: HDDS-10475 for tracking the suggested change! |
|
Thanks @tanvipenumudy for the patch, @myskov for the review. |
apache#6329) (cherry picked from commit 418528a) Change-Id: Ic89d26f3ab4a75508547b590f190a58f675738c3
apache#6329) (cherry picked from commit 418528a)
apache#6329) (cherry picked from commit 418528a)
apache#6329) (cherry picked from commit 418528a)
apache#6329) (cherry picked from commit 418528a)
What changes were proposed in this pull request?
We should refine audit logging for operations modifying bucket properties.
How can this be useful?
As of today, we are only capturing basic information such as volume, bucket, gdprEnabled, isVersionEnabled, storageType and owner properties for any given bucket.
We should also be capturing bucket quota, encryption and replication-related properties.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-10460
How was this patch tested?
Create a bucket with replication-type:
RATIS, replication-factor:THREE:Set
quotaInBytes,quotaInNamespacefor the created bucket:om-audit.log:Set replication-config from replication-factor:
THREEto replication-factor:ONE:om-audit.log: