-
-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default user is unauthorized #618
Comments
There are several ways you could test it. For example you could use minikube, you can check the documentation here. https://docs.terrakube.io/getting-started/deployment/minikube The best way to test it is using https so you can use the terraform remote state locally like this: https://docs.terrakube.io/getting-started/deployment/minikube-+-https https://github.com/orgs/AzBuilder/discussions/548 I never used k3d but if you are receiving 401 maybe the error is related to your ingress, probably it is not forwarding the authorization header to the API. For example when using minikube we add some configuration in the ingress to forward the authorization header like this: https://github.com/AzBuilder/terrakube-helm-chart/blob/main/charts/terrakube/values.yaml#L226
I hope this can help you |
By the way I found that k3s is using traefik ingress, so in that case you will have to change the ingress annotations because by default it is using nginx ingress annotations. |
@alfespa17 Hi, thank you for the fast response. It seems to be related to this issue: Have you tried the minikube deployment recently? |
Hello @divad1196 I am using the following and it is working without any issue:
|
@alfespa17 I don't see the helm command in your response. This is when I use the helm chart that the error arise. Also, I will check the minikube version but it may be newer than yours since I installed minikube yesterday |
I used the same steps from the documentation: The final command to install terrakube is the following:
|
I did some test with minikube v1.32.0, I found the same issue "Snippet directives are disabled by the Ingress administrator" Edit ingres-nginx-controller configMap in namespace ingress-nginx and add the following "allow-snippet-annotations: 'true'" I was able to fix the deployment after adding that option, it will look like this:
|
@alfespa17 Hi. Thank you again. It is okay for testing purpose, but the helm chart won't be usable in a production environment. |
Your are right I will try to find a better way to forward the auth token when deploying in minikube, I created a new issue for that. I guess that will be only an issue when using nginx ingress because the default configuration can be override so you can use any other kubernetes ingress. I think you were able to fix your initial issue using "allow-snippet-annotations" so I will close this issue, feel free to open a new one if you find any other problem. |
Bug description 🐞
I want to try terrakube. (The only explanation provide is using gitpod which I don't want to use).
I am unable to do any action using the default created user admin@exemple.com
Steps to reproduce
Expected behavior
Example repository
No response
Anything else?
As mentionned, I would prefer a documentation that is not related to any particular tool.
The "Getting started" should only rely on embedded UI and raw query example (e.g. using curl).
The text was updated successfully, but these errors were encountered: