Giter Site home page Giter Site logo

Comments (8)

sudermanjr avatar sudermanjr commented on June 9, 2024 2

Yeah, it very well could be a bug. I'll tag this as a bug and we can try to look further.

from rbac-lookup.

sudermanjr avatar sudermanjr commented on June 9, 2024

I opened up a PR that adds a note about configuring access via the cloud. From the output you shared, it looks like you don't have permissions to view that project in Gcloud.

Try following this doc to setup gcloud access to your account: https://cloud.google.com/sdk/docs/quickstart

from rbac-lookup.

bygui86 avatar bygui86 commented on June 9, 2024

@sudermanjr I'm the owner of the project in GCP, I have access to the cluster and I configured gcloud and kubectl properly on my local... in fact all kubectl commands work perfectly... even rbac-lookup works, only rbac-lookup --gke doesn't...

Normally when I see an error like bad request, the first thing I think is that the request is wrong... for a permission problem, the server would answer with 401 Unauthorised or 403 Forbidden instead of 400 Bad request...

from rbac-lookup.

sudermanjr avatar sudermanjr commented on June 9, 2024

No project ID found in default GCP credentials

So not a permissions problem, but a gcloud credentials configuration problem. What happens if you run gcloud config list ?

To be honest, I'm not 100% familiar with the GKE portion of the code. I did just test against one of our gke clusters and did not get any errors, so I don't believe it's a bug.

Also, can you share the version of rbac-manager you are running?

from rbac-lookup.

bygui86 avatar bygui86 commented on June 9, 2024

here the anonymized output of gcloud config list:

[container]
cluster = my-cool-cluster
[core]
account = [email protected]
disable_usage_reporting = False
project = my-cool-project

Your active configuration is: [default]

rbac-manager version: v0.10.1
rbac-lookup version: Version:0.6.2 Commit:030e2484220cd353fa2026b808f5ff0ee1094876

do I need rbac-manager on the cluster to successfully use rbac-lookup?

as I already had some problems for this, it's worth mentioning that our GKE cluster is PRIVATE. Do you think it could cause problems?

from rbac-lookup.

sudermanjr avatar sudermanjr commented on June 9, 2024

Rbac-manager is not required for rbac-lookup.

That's interesting. I don't think private should break it, but I'm not sure I've tried honestly.

from rbac-lookup.

bygui86 avatar bygui86 commented on June 9, 2024

@sudermanjr of course I'm not sure if it's a bug.
But from what I read in docs and what I see, there is no reason why rbac-lookup doesn't work.

from rbac-lookup.

stale avatar stale commented on June 9, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from rbac-lookup.

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.