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
2 years agoService Accounts: failed to DecodeSACCredentials: failed to DeserializeServiceAccountAuthToken
Hello, I'm trying to connect Bitrise with 1Password via a service account. I have set my OP_SERVICE_ACCOUNT_TOKEN environment variable to my service account token. But I get the following error:
...
Former Member
2 years agoI am also having this issue, but neither OP_CONNECT_TOKEN
nor OP_CONNECT_HOST
are set and I've also tried rotating the token several times (using the new one each time), still getting the same error...
What's the best way to debug this? I tried the --debug
flag but didn't get much other information:
$ if [ -z "${OP_CONNECT_TOKEN}" ]; then echo "OP_CONNECT_TOKEN is unset."; else echo "OP_CONNECT_TOKEN is set."; fi
OP_CONNECT_TOKEN is unset.
$ if [ -z "${OP_CONNECT_HOST}" ]; then echo "OP_CONNECT_HOST is unset."; else echo "OP_CONNECT_HOST is set."; fi
OP_CONNECT_HOST is unset.
$ echo $OP_SERVICE_ACCOUNT_TOKEN|wc -c
861
$ op user get --me
[ERROR] 2023/12/30 17:21:52 failed to DecodeSACredentials: failed to DeserializeServiceAccountAuthToken, unrecognized auth type
$ op --debug user get --me
5:21PM | DEBUG | Skipped loading desktop app settings file. The desktop app might not be installed: read file: lstat /root/.config/1Password/settings/settings.json: no such file or directory
[ERROR] 2023/12/30 17:21:58 failed to DecodeSACredentials: failed to DeserializeServiceAccountAuthToken, unrecognized auth type
(As you can see from the debug message I'm trying this as root, but I also tried it as non-root just to make sure this wasn't the issue and I saw the same behavior...)