Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

normativeness of "Common Actions" #48

Open
tr33 opened this issue Nov 6, 2023 · 3 comments
Open

normativeness of "Common Actions" #48

tr33 opened this issue Nov 6, 2023 · 3 comments

Comments

@tr33
Copy link

tr33 commented Nov 6, 2023

"Common Actions" currently defines 4 CRUD and one generice "access" action.

are those normative and mandatory for PDP/PEP spec compliance?
How should a PDP response, in cases a common action is not implemented or does not make sense for a Subject/Resource combination or policy?

@baboulebou
Copy link
Collaborator

@ggebel
Copy link
Collaborator

ggebel commented Nov 14, 2023

See section 3.7.2

@tr33
Copy link
Author

tr33 commented Nov 14, 2023

Section 3.7.2 only states that custom actions can be any other arbitrary string.
But there are use cases where an action represents an actual function with parameters and values that are subject to a policy decision.
Example use cases for such actions:

  • transfer_money (amount = 100, currency = XY)
  • set_credit_amount (value = 20000)

A policy might not only want to check if a subject has to permission to perform an action on a resource, but also check complex parameters value of that action at runtime.

Suggestion:
make a clear statement that the "action" can be represented either as
a) a string value, referring to an arbitrary action in the context of the policy
or
b) a JSON representation of a complex object that represents an action with attributes and/or parameters.
example representation:

"action": {
   "name": "transfer_money",
   "amount": 100.00,
   "currency": "EUR",
 }

to be clear: both forms should be legitimate and supported representations for "actions". Thats up to the PEP/PDP/Policy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants