Monorepo for Tangled tangled.org

rbac2: rbac enforcer rewrite #976

open opened by boltless.me targeting master from sl/spindle-rewrite
  1. Use repo AT-URI as identifier.
  2. Use dom field rather than obj to filter by repository. So now it's "user with role A in repo B can do action D to field C" where A,B,C,D are sub,dom,obj,act.
  3. Manage app-logic rules in embedded csv file which won't be saved in db and load to memory on start. This makes app's global rbac rule change easier as we just need to edit the csv file.

Many permission check methods are missing, but should be enough to test this new RBAC enforcer package in spindle.

Related issue: https://tangled.org/tangled.org/core/issues/282

Signed-off-by: Seongmin Lee git@boltless.me

Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:xasnlahkri4ewmbuzly2rlc5/sh.tangled.repo.pull/3mckguake5o22
Interdiff #0 #1
rbac2/bytesadapter/adapter.go

This file has not been changed.

rbac2/rbac2.go

This file has not been changed.

rbac2/rbac2_test.go

This file has not been changed.

rbac2/repo.go

This file has not been changed.

rbac2/spindle.go

This file has not been changed.

rbac2/tangled_policy.csv

This file has not been changed.

History

4 rounds 0 comments
sign up or login to add to the discussion
1 commit
expand
rbac2: rbac enforcer rewrite
2/3 failed, 1/3 success
expand
no conflicts, ready to merge
expand 0 comments
1 commit
expand
rbac2: rbac enforcer rewrite
1/3 failed, 2/3 success
expand
expand 0 comments
1 commit
expand
rbac2: rbac enforcer rewrite
1/3 failed, 2/3 success
expand
expand 0 comments
1 commit
expand
rbac2: rbac enforcer rewrite
1/3 failed, 2/3 success
expand
expand 0 comments