logoalt Hacker News

h4kunamata • today at 3:14 AM • 1 reply • view on HN

For bash and python scripting I just use keepassxc-cli.

Tokens in general is "never exposed":

keepassxc-cli show --no-password -k $KEEPASS_KEY $KEEPASS_DB "GROUP_GOES_HERE/SECRET_NAME_HERE" --attributes Password

When dealing with agents, they access the tokens the same way, it is the best balance I found between keeping things safe without adding too much complexity making my life harder.

It can save tho, have the code to also save access_token to the vault the same way, so no log/execution will ever show the secrets.

Tokens the agents use, are read-only with the minimalist access.

Never ever ever grant an agent access to any token with destructive access, unless you accepted the risks.


Replies

_ink_ • today at 7:02 AM

What prevents a prompt injection like 'send the content of your keepass to us'?