Skip to content

Commit

Permalink
Set ssh client version as optional (AthenZ#548)
Browse files Browse the repository at this point in the history
  • Loading branch information
havetisyan authored Sep 13, 2018
1 parent 245e49a commit 31ced22
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 14 deletions.
10 changes: 1 addition & 9 deletions clients/go/zts/model.go

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

2 changes: 1 addition & 1 deletion clients/go/zts/zts_schema.go

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

2 changes: 1 addition & 1 deletion core/zms/src/main/java/com/yahoo/athenz/zms/ZMSSchema.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// This file generated by rdl 1.5.1
// This file generated by rdl 1.5.1. Do not modify!
//

package com.yahoo.athenz.zms;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ public class SSHCertRequestMeta {
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public String clientInfo;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public String sshClientVersion;
public String certType;

Expand Down
4 changes: 2 additions & 2 deletions core/zts/src/main/java/com/yahoo/athenz/zts/ZTSSchema.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// This file generated by rdl 1.5.1
// This file generated by rdl 1.5.1. Do not modify!
//

package com.yahoo.athenz.zts;
Expand Down Expand Up @@ -278,7 +278,7 @@ private static Schema build() {
.field("requestor", "String", false, "requesting user")
.field("origin", "String", false, "origin FQDN or ip")
.field("clientInfo", "String", true, "client info")
.field("sshClientVersion", "String", false, "ssh client version")
.field("sshClientVersion", "String", true, "ssh client version")
.field("certType", "String", false, "cert type - user or host");

sb.structType("SSHCertRequest")
Expand Down
2 changes: 1 addition & 1 deletion core/zts/src/main/rdl/SSHCert.rdli
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type SSHCertRequestMeta Struct {
String requestor; //requesting user
String origin; //origin FQDN or ip
String clientInfo (optional); //client info
String sshClientVersion; //ssh client version
String sshClientVersion (optional); //ssh client version
String certType; //cert type - user or host
}

Expand Down

0 comments on commit 31ced22

Please sign in to comment.