coder icon indicating copy to clipboard operation
coder copied to clipboard

DNM: example PR to show how to add a new RBAC resource

Open johnstcn opened this issue 1 year ago • 1 comments

  1. In coderd/rbac/policy/policy.go, add your resources and action definitions.
  2. Run make gen to generate codersdk/rbacresources_gen.go
  3. Update roles in coderd/rbac/roles.go and ensure tests in coderd/rbac pass
  4. Add database tables & authorization
  5. Add API routes & authorization
  6. Add tests

johnstcn avatar Jul 30 '24 10:07 johnstcn

🤖 Meticulous replayed 100 user sessions and took 759 visual snapshots. Meticulous has not yet run on 956d0cb0424277340e675bb14fef41ae2e35b495 of the main branch and so there was nothing to compare against. If you recently setup Meticulous, this is expected. Meticulous will start reporting comparisons for new pull requests after the next commit to the main branch.

Last updated for commit 16d0869. This comment will update as new commits are pushed.

alwaysmeticulous[bot] avatar Jul 30 '24 10:07 alwaysmeticulous[bot]

Thanks @Emyrk @dannykopping ! Closing this out.

johnstcn avatar Sep 10 '24 14:09 johnstcn