Comments (5)
I had the same issue.
{"log_message":"(E) Server: (unable to get credentials and initialize API, retrying in 30s), Wrapped: (failed to FindCredentialsUniqueKey), Wrapped: (failed to loadCredentialsFile), Wrapped: (LoadLocalAuthV2 failed to credentialsDataFromBase64), illegal base64 data at input byte 0","
timestamp":"2022-08-29T23:34:22.541943876Z","level":1}
This was because I used the 1password-credentials.json as text without base64 encoding in the Kubernetes secret. In other words, it's base64 encoded twice
➜ k get secrets -n 1password op-credentials -o yaml | yq e '.data.op-session' | base64 --decode | base64 --decode
{"verifier":{"salt":"REDACTED","localHash":"REDACTED"},"encCredentials":{"kid":"localauthv2keykid","enc":"A256GCM","cty":"b5+jwk+json","iv":"REDACTED","data":"REDACTED"},"version":"2","deviceUuid":"REDACTED","uniqueKey":{"alg":"A256GCM","ext":true,"k":"REDACTED","key_ops":["encrypt","decrypt"],"kty":"oct","kid":"REDACTED"}}
from connect.
What are you passing to the Connect sync container? Is that the token or the 1password-credentials.json
file?
And the Connect token is supposed to have 2 dots in it, so that's fine.
from connect.
Hey @tuxpeople Did you get this resolved?
from connect.
Yes, I have. I started again from scratch, then it worked. As some time has been gone between the two attempts, I can't tell exactly I did change except from that the second time, I used the cli to get the jwt. I assume the error layed somwhere in how I created the secret containing the json. However, It worked and I was able to test the secrets automation to check if it fits my usecase.
from connect.
In my case it was the same than with @ndegory but I got this after encoding the secret twice in base64 Server: (LoadLocalAuthV2 failed to credentialsDataFromBase64), illegal base64 data at input byte 1474
because I did not use the -w 0
on base64
to remove the new line, adding that flag solved the issue.
from connect.
Related Issues (20)
- Terraform Configuration Not Connecting
- Critical Vulnerabilities in Connect images HOT 6
- Incorrect syntax for fields without section when fetched via Connect API HOT 1
- /metrics endpoint exposed HOT 3
- /items filtering restrictions (category) HOT 1
- Invalid bearer token warning messages HOT 2
- Push images to a different registry, in addition to Docker Hub HOT 5
- How to update a password item with the REST API? HOT 2
- Unable to create a token from the CLI even with proper access to the vault HOT 3
- Unable to create token with write access on the UI HOT 1
- Unable to update a subset of item attributes HOT 1
- The "Getting Started" section in the kubernetes example appears to be incorrect HOT 6
- Health Check for docker-compose best practice? HOT 3
- Memory Leak in Connect API Container HOT 4
- Be able to configure the interface to listen on HOT 1
- no example for 1password-credentials.json found HOT 1
- Helm Repo HOT 1
- ECS / EFS - User ID Issues HOT 1
- User Permissions / Database Creation Issues
- Accessing secrets with op CLI is case insensitive normally, but case sensitive when a connect server is used
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from connect.