Implement UpdatePolicy RPC
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 344
- Forks
- 47
- Avg merge
- 4d 4h
- Merged PRs (30d)
- 26
Description
Context
The proto defines UpdatePolicy but the handler is unimplemented. This RPC allows clients to modify existing policies by ID.
Use case
CLI tools, direct API clients, and custom integrations that need fine-grained policy control. Not intended for SDK use — SDKs should use high-level role-based RPCs instead.
Implementation
- Accept policy ID and new role ID
- Delete the existing policy
- Create new policy with the updated role
- Execute both operations atomically (transaction)
Scope
- Implement
UpdatePolicyhandler - Add authorization check (
policymanageon resource) - Validate role exists and is assignable to the resource type
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate the proto declaration and the unimplemented UpdatePolicy handler, then inspect nearby policy-management RPCs for authorization and transaction patterns. Implement the handler so it checks policymanage access, validates the role for the resource type, and atomically replaces the policy by ID; done means both operations succeed or neither does.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- api, authorization, backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 50/100