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

API access mode #97

Open
sundowndev opened this issue Jan 17, 2021 · 0 comments
Open

API access mode #97

sundowndev opened this issue Jan 17, 2021 · 0 comments
Assignees
Labels
kind/enhancement New feature or request need triage Work In Progress
Milestone

Comments

@sundowndev
Copy link
Member

sundowndev commented Jan 17, 2021

A feature to run the instance in read only mode. That means any resource can be edited through the REST API. This can be useful when all of your instance is public but only your application is allowed to manage resources of the instance. Concerned routes will now have a middleware deciding whether to allow the request or not. If ReadOnly mode & auth are enabled and the request does not contain a "Authorization" header, disallow the request.

Config example

settings:
    access_mode: ReadOnly # values: ReadOnly, ReadWrite, Restricted (default: ReadWrite)
    auth:
        enabled: true
        key: <bearer_token>
@sundowndev sundowndev added the kind/enhancement New feature or request label Jan 17, 2021
@sundowndev sundowndev self-assigned this Jan 17, 2021
@sundowndev sundowndev changed the title Read only mode API access mode Jan 17, 2021
@sundowndev sundowndev removed the idea label Mar 4, 2021
@sundowndev sundowndev added this to the v0.3.0 milestone Mar 4, 2021
@sundowndev sundowndev added the need triage Work In Progress label Apr 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request need triage Work In Progress
Projects
None yet
Development

No branches or pull requests

1 participant