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

Initial proposal for /allow endpoint #65

Merged
merged 2 commits into from
Apr 11, 2023
Merged

Commits on Apr 11, 2023

  1. Initial proposal for /allow endpoint

    This creates an `/allow` endpoint which does the actual permission
    check.
    
    It takes three mandatory query parameters:
    
    * `tenant`: The tenant URN
    * `resource`: The resource URN
    * `action`: The action identifier tag
    
    It also adds a simple OpenAPI v3 spec document.
    
    The intent is to have an easy, general and fairly opinionated endpoint
    to do permission checks on. This can be taken programmatically without
    much logic in... say... an API Gateway, to do the needed checks without
    adding much logic other than gathering the mandatory parameters.
    
    Signed-off-by: Juan Antonio Osorio <[email protected]>
    JAORMX committed Apr 11, 2023
    Configuration menu
    Copy the full SHA
    237f546 View commit details
    Browse the repository at this point in the history
  2. allow API: Make resource optional

    Signed-off-by: Juan Antonio Osorio <[email protected]>
    JAORMX committed Apr 11, 2023
    Configuration menu
    Copy the full SHA
    c47e5aa View commit details
    Browse the repository at this point in the history