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

Use environment variables in the API for Authentication Requirement & Visibility of Details queried from betyDB #2639

Closed
tezansahu opened this issue Jun 18, 2020 · 0 comments
Assignees
Labels

Comments

@tezansahu
Copy link
Contributor

Description

  • Currently, the API enforces authentication for some endpoints while allows some others to be called without authenticated. In addition to this, we wish to have an environment variable AUTH_REQ, which if TRUE allows the above mentioned behavior, but if FALSE allows requests to all endpoints on that server to be called without the need for authentication.

  • Currently, on calling the workflows & runs related endpoints, all results that exist across all host machines that satisfy the filtering criteria are returned. We would like to have an environment variable HOST_ONLY, which if FALSE would callow behavior as mentioned above, but if TRUE would restrict results belonging to the particular host only.

Proposed Solution

Implement the 2 environment variables AUTH_REQ & HOST_ONLY as mentioned in the description & add simple checks/filters to achieve the mentioned functionality.

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

No branches or pull requests

2 participants