It’s Cybersecurity Awareness Month! Join our interactive training session, or learn about security and AI from 1Password experts.
Forum Discussion
Former Member
3 years agoIs it possible to Authentication CLI with Token?
I'm still new to the 1Password Secret automation and the CLI. So i'm trying to lay out my idea here.
I want to have my nginx/php process wrapped with the op run -- command, as I want my secrets...
andi_t_1P
1Password Team
3 years agoHi @tomasnorre , unfortunately the classic CLI use-case requires human interaction for authentication for enhanced security reasons. The authentication is done via a temporary token (which looks something like this OP_SESSION_PNDZZZZZZZZZZZZZZZZZ="Av_Aya5nYgjFycHWduOjTktUsqxrwfghtugj9DQLUS7w4"), which you get by providing a valid password/biometrics. Better suited for your use case would be either our Connect Server feature or Service Accounts beta feature. Both of these allow you to authenticate only via some tokens passed through environment variables.
Hope this helps,
Andi