Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a profile field to the authz.Rotate RPC. #200

Merged
merged 5 commits into from
Jul 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
123 changes: 67 additions & 56 deletions authz/authz.pb.go

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

16 changes: 16 additions & 0 deletions authz/authz.proto
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,22 @@ message RotateAuthzRequest {
// version` is already in use (is not unique).
// It is a no-op for the `finalize_rotation` request.
bool force_overwrite = 3;

// The profile for which the authz policy is being rotated. In the case that
// this field is not specified, the default authz policy which applies to all
// gRPC endpoints run by the target is assumed. Where non-default policies
// are to supported by an endpoint, the value of the profile determines which
// set of policies are to be rotated.
//
// It is not permitted to rotate multiple profiles' policies at the same time
// - if a `Rotate` RPC is in progress for profile "foo" (i.e.,
// `upload_request` has been supplied, but the rotation has not been
// finalised), and a second `RotateAuthzRequest` with `upload_request` is sent
// from the client for profile "bar" this is considered an error.
//
// Note that the authz profile is considered independent from a SSL profile
// ID (as referenced by gnsi.Certz).
string authz_profile_id = 4;
}

// Response messages from the target.
Expand Down
Loading