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

[poststation] Access Control Ideas? #11

Open
jamesmunns opened this issue Jan 4, 2025 · 1 comment
Open

[poststation] Access Control Ideas? #11

jamesmunns opened this issue Jan 4, 2025 · 1 comment
Labels
design-rfc Design questions for poststation Poststation Issues for the Poststation Server

Comments

@jamesmunns
Copy link
Contributor

Right now poststation allows connections locally, and all connections have "full permissions" to all devices and capabilities.

Before we open up connections outside of the local device, we need at minimum some kind of auth token to prevent unauthorized users making connections.

We also may want to consider "scoping" these permissions, e.g. allowing read only access (list devices, subscribe to topics, see history), but not write access (endpoint requests, publishes, deleting history); or only allow access to a subset of devices.

At the moment, I plan to put this info in a config file, we might also want API access to create or revoke tokens.

@jamesmunns jamesmunns added the design-rfc Design questions for poststation label Jan 4, 2025
@jamesmunns
Copy link
Contributor Author

I'm currently looking at https://github.com/biscuit-auth/biscuit-rust as an option for this.

@jamesmunns jamesmunns added the Poststation Issues for the Poststation Server label Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design-rfc Design questions for poststation Poststation Issues for the Poststation Server
Projects
None yet
Development

No branches or pull requests

1 participant