Giter VIP home page Giter VIP logo

Comments (5)

ndegory avatar ndegory commented on May 26, 2024 1

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.

florisvdg avatar florisvdg commented on May 26, 2024

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.

verkaufer avatar verkaufer commented on May 26, 2024

Hey @tuxpeople Did you get this resolved?

from connect.

tuxpeople avatar tuxpeople commented on May 26, 2024

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.

antham avatar antham commented on May 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.