In a our previous post, we looked at generating a 1password session without requiring user input. Today we will look at generating a one-time (30-minute) token on your local machine and only sharing that with your build servers.
op get item db_password --session $(cat opsession)
Did you know 1Password has a CLI tool? In this article we will write a small script using expect called
opsession to better manage secrets in our automation pipeline. Using
opsession you can then use 1password
op commands like
op get item db_password --session $(opsession)
Without having any user intervention.