Skip to content

Commit

Permalink
Merge pull request #195 from algamaes/algamaes/nodeagent_sign_interme…
Browse files Browse the repository at this point in the history
…diate_certs

Add Sign and Renew to NodeAgent certificates
  • Loading branch information
algamaes authored Aug 7, 2023
2 parents d372f63 + d3d2c05 commit d977716
Show file tree
Hide file tree
Showing 2 changed files with 269 additions and 45 deletions.
42 changes: 29 additions & 13 deletions rpc/nodeagent/security/certificate/moc_nodeagent_certificate.proto
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,39 @@ message CertificateRequest {
message CertificateResponse {
repeated Certificate Certificates = 1;
google.protobuf.BoolValue Result = 2;
string Error = 3;
string Error = 3;
}

message Certificate {
string name = 1;
string id = 2;
int64 notBefore = 3;
int64 notAfter = 4;
string certificate = 5 [(sensitive) = true];
Status status = 6;
CertificateType type = 7;
Entity entity = 8;
Tags tags = 9;
string name = 1;
string id = 2;
int64 notBefore = 3;
int64 notAfter = 4;
string certificate = 5 [(sensitive) = true];
Status status = 6;
CertificateType type = 7;
Entity entity = 8;
Tags tags = 9;
}

message CSRRequest {
repeated CertificateSigningRequest CSRs = 1;
}

message CertificateSigningRequest {
string name = 1;
string csr = 2 [(sensitive) = true];
string oldCertificate = 3 [(sensitive) = true];
Status status = 4;
string caName = 5;
int64 validity = 6;
google.protobuf.BoolValue serverAuth = 7;
}

service CertificateAgent {
rpc CreateOrUpdate(CertificateRequest) returns (CertificateResponse) {}
rpc Get(CertificateRequest) returns (CertificateResponse) {}
rpc Delete(CertificateRequest) returns (CertificateResponse) {}
rpc CreateOrUpdate(CertificateRequest) returns (CertificateResponse) {}
rpc Get(CertificateRequest) returns (CertificateResponse) {}
rpc Delete(CertificateRequest) returns (CertificateResponse) {}
rpc Sign(CSRRequest) returns (CertificateResponse) {}
rpc Renew(CSRRequest) returns (CertificateResponse) {}
}
272 changes: 240 additions & 32 deletions rpc/nodeagent/security/moc_nodeagent_certificate.pb.go

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

0 comments on commit d977716

Please sign in to comment.