Skip to content

Commit

Permalink
include recently added fields in domain audit log
Browse files Browse the repository at this point in the history
Signed-off-by: Abhijeet V <[email protected]>
  • Loading branch information
abvaidya committed Jul 23, 2024
1 parent a1900c4 commit 5844820
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions servers/zms/src/main/java/com/yahoo/athenz/zms/DBService.java
Original file line number Diff line number Diff line change
Expand Up @@ -6116,8 +6116,8 @@ void auditLogDomain(StringBuilder auditDetails, Domain domain) {
.append("\", \"org\": \"").append(domain.getOrg())
.append("\", \"auditEnabled\": \"").append(domain.getAuditEnabled())
.append("\", \"enabled\": \"").append(domain.getEnabled())
.append("\", \"account\": \"").append(domain.getAccount())
.append("\", \"acctId\": \"").append(domain.getApplicationId())
.append("\", \"awsAccount\": \"").append(domain.getAccount())
.append("\", \"appId\": \"").append(domain.getApplicationId())
.append("\", \"ypmid\": \"").append(domain.getYpmId())
.append("\", \"id\": \"").append(domain.getId())
.append("\", \"memberExpiryDays\": \"").append(domain.getMemberExpiryDays())
Expand All @@ -6129,6 +6129,13 @@ void auditLogDomain(StringBuilder auditDetails, Domain domain) {
.append("\", \"userAuthorityFilter\": \"").append(domain.getUserAuthorityFilter())
.append("\", \"businessService\": \"").append(domain.getBusinessService())
.append("\", \"productId\": \"").append(domain.getProductId())
.append("\", \"gcpProject\": \"").append(domain.getGcpProject())
.append("\", \"gcpProjectNumber\": \"").append(domain.getGcpProjectNumber())
.append("\", \"azureSubscription\": \"").append(domain.getAzureSubscription())
.append("\", \"azureTenant\": \"").append(domain.getAzureTenant())
.append("\", \"azureClient\": \"").append(domain.getAzureClient())
.append("\", \"environment\": \"").append(domain.getEnvironment())
.append("\", \"memberPurgeExpiryDays\": \"").append(domain.getMemberPurgeExpiryDays())
.append("\", \"featureFlags\": \"").append(domain.getFeatureFlags()).append("\"");
auditLogTags(auditDetails, domain.getTags());
auditLogDomainContacts(auditDetails, domain.getContacts());
Expand Down

0 comments on commit 5844820

Please sign in to comment.