Coder Social home page Coder Social logo

Unauthorized about fissile HOT 6 OPEN

dmolik avatar dmolik commented on July 19, 2024
Unauthorized

from fissile.

Comments (6)

jandubois avatar jandubois commented on July 19, 2024

It is hard to say without actually seeing the rolemanifest.

If you use RBAC on the cluster, did you set the kube.auth setting in your values.yaml file to rbac to enable correct service accounts and role bindings?

Do you have the PodSecurityPolicy admission controller enabled on that cluster?

from fissile.

dmolik avatar dmolik commented on July 19, 2024

Okay, so RBAC is not enabled on the Cluster.
I'm not sure how to set authentication is there documentation on that?

from fissile.

jandubois avatar jandubois commented on July 19, 2024

Authentication defaults to none, which is correct when you don't have RBAC enabled.

Is there a way you can share the rolemanifest and bosh release so we can take a look? Or create a simplified test case if this is private code?

from fissile.

dmolik avatar dmolik commented on July 19, 2024

Okay I've tried with the nats example and I'm getting the same issue

from fissile.

dmolik avatar dmolik commented on July 19, 2024

This is the same error when I curl my kube-api directly without and client x509 cert.
is it possible to include a client cert in the yaml to use to authorize configgin?

from fissile.

jandubois avatar jandubois commented on July 19, 2024

I'm not sure we ever tested fissile with user accounts requiring client certs, so I'm not sure how to configure it (and if it would work).

The configgin code assumes that all pods have a service account with sufficient access (look at templates/auth-role-configgin-role.yaml inside the generated helm chart).

The configgin code to fetch the auth token from its service account is at https://github.com/SUSE/configgin/blob/8b4b33ebc34fd494c2b90bfb03aae1534e40761b/bin/configgin#L24-L35

BTW, it looks like RBAC is now the default, you would have to switch this to none to disable it (in values.yaml):

kube:
...
  auth: "rbac"

But I expect it to continue to fail for you because you would still need to provide an authenticated token to the default service account somehow.

from fissile.

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.