Support for API token
ShellHub API provides highly privileged access with no ability to manage the possible negative impact. It would be much better if we could support scoped-tokens instead of full access to all resources.
What needs to be done?
- Web UI: A dialog to create API tokens (Settings Page)
- Web UI : A list view to list all namespace's API tokens
- API: A new API route to issue a token
- API: A new API route to list tokens
The generated token must contain following information:
- tenant_id (namespace's tenant_id)
- read_only (default: true)
Each token should be embedded into namespace document.
Hi, is there any news on this ? I am currently integrating shellhub in my process and I would need to use API Keys instead of relying on JWT tokens which are only valid for a day.
I can see that the PR #724 added support for that but was never merged
@Seluj78
The PR #724 did attempt to add support for this, but it was discontinued due to some technical considerations.
We are prototyping the user interface for this feature and you can preview the UI here: https://www.figma.com/file/z0OplSCyaEAUMu8qZXRobX/Personal-Access-Token?type=design&node-id=0-1&mode=design
That's great ! When do you think this could be implemented? In the mean time I am implementing my own solution using JWT tokens
Support to API Key/Token was added in this PR and will be released on 0.15