This is an automated email from the ASF dual-hosted git repository.
adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/master by this push:
new 418528adea HDDS-10460. Refine audit logging for bucket property update
operations (#6329)
418528adea is described below
commit 418528adea50541923f15b844c2afff03be13e47
Author: tanvipenumudy <[email protected]>
AuthorDate: Wed Mar 6 23:26:12 2024 +0530
HDDS-10460. Refine audit logging for bucket property update operations
(#6329)
---
.../hadoop/ozone/om/helpers/OmBucketArgs.java | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git
a/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/OmBucketArgs.java
b/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/OmBucketArgs.java
index 34e93c1674..168e9e9528 100644
---
a/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/OmBucketArgs.java
+++
b/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/OmBucketArgs.java
@@ -187,6 +187,27 @@ public final class OmBucketArgs extends WithMetadata
implements Auditable {
if (this.ownerName != null) {
auditMap.put(OzoneConsts.OWNER, this.ownerName);
}
+ if (this.quotaInBytesSet && quotaInBytes > 0 ||
+ (this.quotaInBytes != OzoneConsts.QUOTA_RESET)) {
+ auditMap.put(OzoneConsts.QUOTA_IN_BYTES,
+ String.valueOf(this.quotaInBytes));
+ }
+ if (this.quotaInNamespaceSet && quotaInNamespace > 0 ||
+ (this.quotaInNamespace != OzoneConsts.QUOTA_RESET)) {
+ auditMap.put(OzoneConsts.QUOTA_IN_NAMESPACE,
+ String.valueOf(this.quotaInNamespace));
+ }
+ if (this.bekInfo != null) {
+ auditMap.put(OzoneConsts.BUCKET_ENCRYPTION_KEY,
+ this.bekInfo.getKeyName());
+ }
+ if (this.defaultReplicationConfig != null) {
+ auditMap.put(OzoneConsts.REPLICATION_TYPE, String.valueOf(
+ this.defaultReplicationConfig.getType()));
+ auditMap.put(OzoneConsts.REPLICATION_CONFIG,
+ this.defaultReplicationConfig.getReplicationConfig()
+ .getReplication());
+ }
return auditMap;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]