Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: document RBAC usage#14065

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
dannykopping merged 11 commits intomainfromdk/rbacdoc
Sep 10, 2024
Merged
Show file tree
Hide file tree
Changes from1 commit
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
PrevPrevious commit
NextNext commit
Apply suggestions from code review
Co-authored-by: Cian Johnston <cian@coder.com>
  • Loading branch information
@dannykopping@johnstcn
dannykopping andjohnstcn authoredSep 10, 2024
commit5fa2b96bc12fe7ca5a41c772871eb585a3a0718d
2 changes: 1 addition & 1 deletioncoderd/rbac/README.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -49,7 +49,7 @@ This can be represented by the following truth table, where Y represents _positi
- `object` is any valid resource type.
- `id` is any valid UUID v4.
- `id` is included in the permission syntax, however only scopes may use `id` to specify a specific object.
- `action` is `create`, `read`, `modify`, `delete`,or another verb.
- `action` istypically`create`, `read`, `modify`, `delete`,but you can define other verbs as needed.

## Example Permissions

Expand Down
4 changes: 2 additions & 2 deletionscoderd/rbac/USAGE.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -103,7 +103,7 @@ Let's now add our frobulator noun to `coderd/rbac/policy/policy.go`:
...
```

Entriesin the `frobulators` table be created/read/updated/deleted, so we define
We need to create/read/update/delete rowsin the `frobulators` table, so we define
those actions.

`policy.go` is used to generate code in `coderd/rbac/object_gen.go`, and we can
Expand DownExpand Up@@ -288,7 +288,7 @@ FAIL
This shows you that the `org_auditor` role has `read` permissions on the
frobulator, but no test case covered it.

**NOTE: don't just add cases which make the tests pass; consider all theway in
**NOTE: don't just add cases which make the tests pass; consider all theways in
which your resource must be used, and test all of those scenarios!**

# Database authorization
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp