raystack / raystack/frontier

Implement UpdatePolicy RPC

Open
#1,470 0 comments 0 reactions 0 assignees View on GitHub

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 UpdatePolicy handler
  • Add authorization check (policymanage on resource)
  • Validate role exists and is assignable to the resource type

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.