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

clients/v1: add Roles service with RegisterRoleResources RPC #69

Merged
merged 4 commits into from
Nov 7, 2024

Conversation

jac
Copy link
Member

@jac jac commented Nov 6, 2024

Adds the RPC to register resources with SAMS to the clients API. These resources must have a valid ResourceType defined in the roles package. These resources will be used by SAMS to generate assets for Entitle grants.

Registering resources requires a client to have the sams::roles.resources::write scope

Closes CORE-397

Test plan

CI

@jac jac requested a review from a team as a code owner November 6, 2024 15:33
clients/v1/clients.proto Outdated Show resolved Hide resolved
clients/v1/clients.proto Outdated Show resolved Hide resolved
clients/v1/clients.proto Outdated Show resolved Hide resolved
clients/v1/clients.proto Outdated Show resolved Hide resolved

service RolesService {
rpc RegisterRoleResources (stream RegisterRoleResourcesRequest) returns (RegisterRoleResourcesResponse) {
option (sams_required_scopes) = "sams::roles.resources::write";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

technically we should require write and delete right, as this RPC can do both?

@jac jac merged commit dce665e into main Nov 7, 2024
2 checks passed
@jac jac deleted the jac/core-397 branch November 7, 2024 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants