Skip to content

Commit

Permalink
replace file with blob and add additional action for admins in OpenFG…
Browse files Browse the repository at this point in the history
…A model
  • Loading branch information
MGTheTrain committed Nov 17, 2024
1 parent 367f2dd commit b99efb7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docs/diagrams/openfga.dsl
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,18 @@ type user

type blob
relations
# Permissions related to file management
# Permissions related to blob management
define can_manage_all_blobs: admin
define can_manage_own_blobs: owner
define can_download_blobs_with_given_permission: grantee
define can_view_blobs_with_given_permission: grantee

# Cryptographic actions
define can_manage_all_keys: admin
define create_own_cryptographic_keys: owner
define encrypt_decrypt_own_files: owner
define generate_signature_for_own_files: owner
define verify_file_signature: owner or grantee # Public key verification is possible for grantee
define encrypt_decrypt_own_blobs: owner
define generate_signature_for_own_blobs: owner
define verify_blob_signature: owner or grantee # Public key verification is possible for grantee

# Access control for owners and grantees
define can_grant_access_to_download_owned_blobs: owner
Expand Down

0 comments on commit b99efb7

Please sign in to comment.