Signing back into the Community for the first time? You'll need to reset your password to access your account. Find out more.
Forum Discussion
Former Member
3 years agoPossible to pass CLI on vm through to host?
Wondering if it's possible, been attempted, or known to not be possible at all, to somehow connect the CLI running in a vm or container to the host system. Specific use cases I'm thinking of are Linu...
Former Member
3 years agoHey again @CHasenpflug1 ,
Apologies, I missed a critical part of your question.
There is no such way to do so at the moment, but we are working on service account access tokens for use in non-automated environments that may fit your use case.
Alternatively, you could look into setting up a Connect server and accessing it via op
using tokens.
As a last resort, there is a way to authenticate to op
that can be "scripted" in a non-interactive way, but I do not suggest it as it is a security risk.
The op account add
and op signin
commands can accept the password piped via stdin. For exampe: eval $(echo "$PASSWORD" | op account add --email "$EMAIL" --address "$SIGNIN_ADDRESS" --secret-key "$SECRET_KEY"
While this method can work, it can expose the password to any processes that are monitoring other processes being initialized.