Skip to content

Commit

Permalink
Merge pull request #86 from smallstep/mariano/ott
Browse files Browse the repository at this point in the history
Add PostOneTimeToken and revocation reason code
  • Loading branch information
maraino authored Jun 12, 2024
2 parents 43649ff + 1f08ce8 commit a7c8737
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 a7c8737

Please sign in to comment.