Coder Social home page Coder Social logo

Installation on AKS about skooner HOT 6 CLOSED

skooner-k8s avatar skooner-k8s commented on July 23, 2024
Installation on AKS

from skooner.

Comments (6)

herbrandson avatar herbrandson commented on July 23, 2024

hey @Elexy. Sorry you're having issues.

The "no RBAC policy matched" is actually misleading. At startup, the server attempts to call one of the authentication apis as a non-authenticated user, just to make sure the api exists. I really need to remove (or improve) that logging as it clearly leads to confusion.

As to why you're not able to login, that last line looks like you're token is returning a 401 when calling the selfsubjectaccessreviews. Can you verify that the token you're using is correct? If it is, we'll have to dig in a bit more to figure out what's going on.

from skooner.

herbrandson avatar herbrandson commented on July 23, 2024

@Elexy Were you able to verify that the token was valid? What can I do to help?

from skooner.

Elexy avatar Elexy commented on July 23, 2024

I tried the same setup again from scratch and now it works! Must have been a case of fat fingers
Thanks and awesome work!

from skooner.

Elexy avatar Elexy commented on July 23, 2024

When I run it through port-forward the token works:

[HPM] POST /apis/authorization.k8s.io/v1/selfsubjectaccessreviews -> https://noise-dns-eea9be65.hcp.eastus.azmk8s.io:443
POST /apis/authorization.k8s.io/v1/selfsubjectaccessreviews 201

but running it through kubectl proxy auth with the same token fails.

[HPM] POST /apis/authorization.k8s.io/v1/selfsubjectaccessreviews -> https://noise-dns-eea9be65.hcp.eastus.azmk8s.io:443
POST /apis/authorization.k8s.io/v1/selfsubjectaccessreviews 401

p.s. the websockets connection seems to fail with the port-forward

from skooner.

herbrandson avatar herbrandson commented on July 23, 2024

Thanks for chasing down those details. Based on this link (kubernetes/kubernetes#38775) it seems that kubectl proxy strips the Authorization header.

From that link:

this is working as expected. "proxying" through the apiserver will not get you standard proxy behavior (preserving Authorization headers end-to-end), because the API is not being used as a standard proxy

So unfortunately, it doesn't sound like it's possible to support using k8dash view kubectl proxy

from skooner.

Elexy avatar Elexy commented on July 23, 2024

@herbrandson Thanks for that.

from skooner.

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.