Skip to content

Commit

Permalink
add x509-cert-signer-keyid and ssh-cert-signer-keyid fields to domain…
Browse files Browse the repository at this point in the history
… meta

Signed-off-by: Henry Avetisyan <hga@yahooinc.com>
  • Loading branch information
havetisyan committed Jul 8, 2024
1 parent d0f23f6 commit 00adf9b
Show file tree
Hide file tree
Showing 24 changed files with 1,978 additions and 1,183 deletions.
132 changes: 132 additions & 0 deletions clients/go/zms/model.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions clients/go/zms/zms_schema.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions core/zms/src/main/java/com/yahoo/athenz/zms/Domain.java
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ public class Domain {
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public ResourceDomainOwnership resourceOwnership;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_NULL)
public String x509CertSignerKeyId;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_NULL)
public String sshCertSignerKeyId;
public String name;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
Expand Down Expand Up @@ -316,6 +322,20 @@ public Domain setResourceOwnership(ResourceDomainOwnership resourceOwnership) {
public ResourceDomainOwnership getResourceOwnership() {
return resourceOwnership;
}
public Domain setX509CertSignerKeyId(String x509CertSignerKeyId) {
this.x509CertSignerKeyId = x509CertSignerKeyId;
return this;
}
public String getX509CertSignerKeyId() {
return x509CertSignerKeyId;
}
public Domain setSshCertSignerKeyId(String sshCertSignerKeyId) {
this.sshCertSignerKeyId = sshCertSignerKeyId;
return this;
}
public String getSshCertSignerKeyId() {
return sshCertSignerKeyId;
}
public Domain setName(String name) {
this.name = name;
return this;
Expand Down Expand Up @@ -432,6 +452,12 @@ public boolean equals(Object another) {
if (resourceOwnership == null ? a.resourceOwnership != null : !resourceOwnership.equals(a.resourceOwnership)) {
return false;
}
if (x509CertSignerKeyId == null ? a.x509CertSignerKeyId != null : !x509CertSignerKeyId.equals(a.x509CertSignerKeyId)) {
return false;
}
if (sshCertSignerKeyId == null ? a.sshCertSignerKeyId != null : !sshCertSignerKeyId.equals(a.sshCertSignerKeyId)) {
return false;
}
if (name == null ? a.name != null : !name.equals(a.name)) {
return false;
}
Expand Down
26 changes: 26 additions & 0 deletions core/zms/src/main/java/com/yahoo/athenz/zms/DomainData.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ public class DomainData {
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public ResourceDomainOwnership resourceOwnership;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_NULL)
public String x509CertSignerKeyId;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_NULL)
public String sshCertSignerKeyId;
public String name;
public List<Role> roles;
public SignedPolicies policies;
Expand Down Expand Up @@ -312,6 +318,20 @@ public DomainData setResourceOwnership(ResourceDomainOwnership resourceOwnership
public ResourceDomainOwnership getResourceOwnership() {
return resourceOwnership;
}
public DomainData setX509CertSignerKeyId(String x509CertSignerKeyId) {
this.x509CertSignerKeyId = x509CertSignerKeyId;
return this;
}
public String getX509CertSignerKeyId() {
return x509CertSignerKeyId;
}
public DomainData setSshCertSignerKeyId(String sshCertSignerKeyId) {
this.sshCertSignerKeyId = sshCertSignerKeyId;
return this;
}
public String getSshCertSignerKeyId() {
return sshCertSignerKeyId;
}
public DomainData setName(String name) {
this.name = name;
return this;
Expand Down Expand Up @@ -456,6 +476,12 @@ public boolean equals(Object another) {
if (resourceOwnership == null ? a.resourceOwnership != null : !resourceOwnership.equals(a.resourceOwnership)) {
return false;
}
if (x509CertSignerKeyId == null ? a.x509CertSignerKeyId != null : !x509CertSignerKeyId.equals(a.x509CertSignerKeyId)) {
return false;
}
if (sshCertSignerKeyId == null ? a.sshCertSignerKeyId != null : !sshCertSignerKeyId.equals(a.sshCertSignerKeyId)) {
return false;
}
if (name == null ? a.name != null : !name.equals(a.name)) {
return false;
}
Expand Down
26 changes: 26 additions & 0 deletions core/zms/src/main/java/com/yahoo/athenz/zms/DomainMeta.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ public class DomainMeta {
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public ResourceDomainOwnership resourceOwnership;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_NULL)
public String x509CertSignerKeyId;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_NULL)
public String sshCertSignerKeyId;

public DomainMeta setDescription(String description) {
this.description = description;
Expand Down Expand Up @@ -305,6 +311,20 @@ public DomainMeta setResourceOwnership(ResourceDomainOwnership resourceOwnership
public ResourceDomainOwnership getResourceOwnership() {
return resourceOwnership;
}
public DomainMeta setX509CertSignerKeyId(String x509CertSignerKeyId) {
this.x509CertSignerKeyId = x509CertSignerKeyId;
return this;
}
public String getX509CertSignerKeyId() {
return x509CertSignerKeyId;
}
public DomainMeta setSshCertSignerKeyId(String sshCertSignerKeyId) {
this.sshCertSignerKeyId = sshCertSignerKeyId;
return this;
}
public String getSshCertSignerKeyId() {
return sshCertSignerKeyId;
}

@Override
public boolean equals(Object another) {
Expand Down Expand Up @@ -400,6 +420,12 @@ public boolean equals(Object another) {
if (resourceOwnership == null ? a.resourceOwnership != null : !resourceOwnership.equals(a.resourceOwnership)) {
return false;
}
if (x509CertSignerKeyId == null ? a.x509CertSignerKeyId != null : !x509CertSignerKeyId.equals(a.x509CertSignerKeyId)) {
return false;
}
if (sshCertSignerKeyId == null ? a.sshCertSignerKeyId != null : !sshCertSignerKeyId.equals(a.sshCertSignerKeyId)) {
return false;
}
}
return true;
}
Expand Down
Loading

0 comments on commit 00adf9b

Please sign in to comment.