Skip to content
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

k8s auth backend -- no authbackend type #32

Open
reedjosh opened this issue Feb 29, 2024 · 2 comments
Open

k8s auth backend -- no authbackend type #32

reedjosh opened this issue Feb 29, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@reedjosh
Copy link

What happened?

Tried to create a kubernetes auth backend.

Used authBackendConfig

But there is then no path for that backend.

Errors:\n\n* no handler for route 'auth/k8s-test-cluster/config': "

Most other backends have an authbackend type.

In terraform I'd do something like:

resource "vault_auth_backend" "kubernetes" {
  type = "kubernetes"
  path = "k8s-${local.cluster_name}"
}

Which would create the backend.

I'm going to try using the token backend, but not sure if that will work, and it seems a bit odd that this doesn't exist for the k8s backend.

Thanks!

@reedjosh reedjosh added the bug Something isn't working label Feb 29, 2024
@reedjosh
Copy link
Author

Well, that was quick.

I see the following in the generated examples.

apiVersion: auth.vault.upbound.io/v1alpha1
kind: Backend
metadata:
  annotations:
    meta.upbound.io/example-id: kubernetes/v1alpha1/authbackendconfig
  labels:
    testing.upbound.io/example-name: kubernetes
  name: kubernetes
spec:
  forProvider:
    type: kubernetes

Suppose I'll go give that a try. : )

@reedjosh
Copy link
Author

Yup, this totally works.

I'll leave this for ya'll to close so you can at least witness the silly shenanigans your newb users are getting up to. 🙃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant