Using 1password on a server in a script?

Options
jdeluyck
jdeluyck
Community Member
edited February 2023 in SSH

Hi,

I've been a recent 1password convert, and I'm loving it.
One thing I can't figure out if this is possible:

I have a server on which I have scripts running (through cron) that need some credentials.
Both SSH keys are required as well as actual API credentials.

Right now those are stored in a file on the filesystem, which works, but I'd love it if I can somehow get these out of OP instead of having to have the files there.

These scripts run at night, thus it needs to be 100% "hands-off".

For the SSH keys I fear there is no solution using OP that's truly non-interactive.
The API credentials I think are possible, but I'm not seeing it.

Anyone can point me in the right direction?


1Password Version: 8.10.0
Extension Version: 2.6.1
OS Version: Fedora 37
Browser:_ Firefox

Comments

  • Hi @jdeluyck:

    Great question, and glad to hear you're enjoying 1Password so far!

    It sounds like what may work best for your specific use case is our Secrets Automation workflow: 1Password Secrets Automation Workflow

    1Password CLI can connect directly to a 1Password Connect Server using a bearer token and access secrets that way, or you can use a REST API to access credentials as well.

    Let me know if you'd like to know more!

    Jack

This discussion has been closed.