Coder Social home page Coder Social logo

Comments (7)

sethvargo avatar sethvargo commented on July 2, 2024 1

Well - it should be 😄

from berglas.

sethvargo avatar sethvargo commented on July 2, 2024 1

Hi @PapaStan

You should be able to use Berglas with Cloud Run for Anthos with v0.4.0+. Make sure your underlying node pools have the cloud-platform scope (the default is less).

from berglas.

sethvargo avatar sethvargo commented on July 2, 2024

What permissions does your GKE cluster node service account have? Have you enabled workload identity?

from berglas.

PapaStan avatar PapaStan commented on July 2, 2024

Thank you for your quick reply,

After enabling and using Workload Identity, I'm facing another error:

failed to resolve environment variables: failed to find environment variables: failed to communicate with cloud run: {
    "error": {
        "code": 400,
        "message": "The request has errors",
        "status": "INVALID_ARGUMENT",
        "details": [
            {
                "@type": "type.googleapis.com/google.rpc.BadRequest",
                "fieldViolations": [
                    {
                        "field": "region",
                        "description": "Unsupported region europe-west4"
                    }
                ]
            }
        ]
    }
}

Is berglas using region-locked features?

from berglas.

sethvargo avatar sethvargo commented on July 2, 2024

It uses the regional endpoint to lookup environment variables. You can run berglas with -local and it wont try to contact the API. I haven't tested it with Cloud Run on Anthos because I presumed folks would just use the native Kubernetes stuff instead.

from berglas.

PapaStan avatar PapaStan commented on July 2, 2024

Ok, I'm closing the issue as CloudRun on Anthos is not supported.
Thank you for your time

from berglas.

PapaStan avatar PapaStan commented on July 2, 2024

With the --local flag:

failed to access secret project-id/tls-key: failed to access secret: failed to decrypt dek: rpc error: code = PermissionDenied desc = Request had insufficient authentication scopes.

It looks like the cluster's service account (number[email protected]) is not used by berglas.

from berglas.

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.