Skip to content

Commit

Permalink
Add PostOneTimeToken and revocation reason code
Browse files Browse the repository at this point in the history
This commit adds the new method PostOneTimeToken and reason_code and
revoked_at in GetCertificateStatusResponse and
GetSSHCertificateStatusResponse.
  • Loading branch information
maraino committed May 9, 2024
1 parent 5471d31 commit 1f08ce8
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions spec/linkedca/majordomo.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ option go_package = "go.step.sm/linkedca";

import "linkedca/admin.proto";
import "linkedca/provisioners.proto";
import "google/protobuf/timestamp.proto";

// Majordomo is the public service used to sync configurations to CA's and post
// certificates.
Expand Down Expand Up @@ -43,6 +44,8 @@ service Majordomo {
rpc PostCertificate(CertificateRequest) returns (CertificateResponse);
// PostSSHCertificate sends a signed SSH certificate to majordomo.
rpc PostSSHCertificate(SSHCertificateRequest) returns (SSHCertificateResponse);
// PostOneTimeToken sends a one time token to majordomo.
rpc PostOneTimeToken(OneTimeTokenRequest) returns (OneTimeTokenResponse);
// RevokeCertificate marks an X.509 certificate as revoked.
rpc RevokeCertificate(RevokeCertificateRequest) returns (RevokeCertificateResponse);
// RevokeSSHCertificate marks an SSH certificate as revoked.
Expand Down Expand Up @@ -177,6 +180,15 @@ message SSHCertificateResponse {
string id = 1;
}

message OneTimeTokenRequest {
string jti = 1;
string token = 2;
}

message OneTimeTokenResponse {
string id = 1;
}

enum RevocationStatus {
UNKNOWN = 0;
ACTIVE = 1;
Expand All @@ -203,6 +215,7 @@ message RevokeCertificateRequest {
string reason = 3;
RevocationReasonCode reason_code = 4;
bool passive = 5;
google.protobuf.Timestamp revoked_at = 6;
}

message RevokeCertificateResponse {
Expand All @@ -215,6 +228,7 @@ message RevokeSSHCertificateRequest {
string reason = 3;
RevocationReasonCode reason_code = 4;
bool passive = 5;
google.protobuf.Timestamp revoked_at = 6;
}

message RevokeSSHCertificateResponse {
Expand All @@ -237,6 +251,8 @@ message GetCertificateStatusRequest {

message GetCertificateStatusResponse {
RevocationStatus status = 1;
RevocationReasonCode reason_code = 2;
google.protobuf.Timestamp revoked_at = 3;
}

message GetSSHCertificateStatusRequest {
Expand All @@ -245,4 +261,6 @@ message GetSSHCertificateStatusRequest {

message GetSSHCertificateStatusResponse {
RevocationStatus status = 1;
RevocationReasonCode reason_code = 2;
google.protobuf.Timestamp revoked_at = 3;
}

0 comments on commit 1f08ce8

Please sign in to comment.