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

GroupAlias mountAccessorRef & mountAccessorSelector do not support AuthBackend as a target #60

Open
andrewseling opened this issue Feb 13, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@andrewseling
Copy link

What happened?

The GroupAlias Kind can take a mountAccessor value in three ways:

  1. Direct input (mountAccessor)
  2. Name reference (mountAccessorRef)
  3. Selector reference (mountAccessorSelector)

All three options work with the Backend Kind.

Vault also uses various AuthBackend Kinds, such as the JWT AuthBackend, which enables SSO auth via OIDC.

Passing the accessor ID of the AuthBackend directly to GroupAlias works as expected.

Passing the accessor ID via either:

  1. Name reference
  2. Selector reference

Does not work, as the provider looks for the regular Backend Kind rather than AuthBackend.

I've created a small composition using the go-templating composition function to retrieve the value of the AuthBackend accessor and pass it to the GroupAlias mountAccessor field directly as a workaround.

I would like GroupAlias to support both Backend and AuthBackend Kinds for reference lookups, to eliminate the need for this composition and simplify the user experience.

How can we reproduce it?

  1. Create an AuthBackend in Vault. Take note of the accessor ID in the GUI/CLI.
  2. Create a GroupAlias resource, passing the accessor ID directly to the mountAccessor field. This should work.
  3. Update the GroupAlias to use mountAccessorRef and receive an error. Note that the missing reference is to the regular Backend kind instead of AuthBackend.

What environment did it happen in?

Crossplane: v1.18
Vault provider: 2.0.1

@andrewseling andrewseling added the bug Something isn't working label Feb 13, 2025
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