-
Notifications
You must be signed in to change notification settings - Fork 44
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
Create/revoke agent tokens on cmd line #615
Comments
here is the script I am using to create agent tokens automatically. Maybe it will help someone with the same goal, or at least it will provide context on why I am asking for a builtin feature:
|
update, thanks to @domenkozar for the support. It is indeed already possible to authenticate to the API via auth token. Here is the above example but using auth token. Note that doing it via cmd line would still be much easier. And also, the API response could be nicer to parse by using a standard json response object like
|
To automate adding and removing agents, I would like to generate and revoke agent tokens in bash.
Looking at the api spec, the authentication mechanism only supports user/pass or JWT (received by loggin in with user/pass). A great third option would be to authenticate using an activation token.
Alternatively, or additionally, the
cachix
cmd line app could also have support for this built in. THe interface could be for example:The text was updated successfully, but these errors were encountered: