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

Enabling basic-auth annotation in Higress 2.0+ causes gateway failure with "unable to create wasm http filter basic-auth" #1741

Open
zijiren233 opened this issue Feb 6, 2025 · 0 comments
Assignees
Labels
type/bug Something isn't working

Comments

@zijiren233
Copy link

Ⅰ. Issue Description

When upgrading to Higress 2.0 or higher, if any Ingress resource has the nginx.ingress.kubernetes.io/auth-type: basic annotation enabled, the Gateway fails to update its listeners. This results in the error unable to create wasm http filter basic-auth, rendering the gateway unavailable and impacting multi-tenant availability in production environments.


Ⅱ. Describe what happened

After enabling the nginx.ingress.kubernetes.io/auth-type: basic annotation on an Ingress resource in Higress 2.0+, the Gateway controller crashes or enters a degraded state. The following error is observed in the controller logs:

unable to update/create wasm http filter basic-auth

Ⅲ. Describe what you expected to happen

ignore basic-auth config


Ⅳ. How to reproduce it (as minimally and precisely as possible)

  1. Deploy Higress 2.0+ in a Kubernetes cluster.
  2. Create an Ingress resource with the following annotation:
    annotations:
      "nginx.ingress.kubernetes.io/auth-type": "basic"
  3. Apply the configuration via kubectl apply -f ingress.yaml.
  4. Observe the Gateway controller logs for the error unable to create wasm http filter basic-auth.
  5. Verify that the Gateway status becomes unhealthy and new listener updates are blocked.
@johnlanni johnlanni self-assigned this Feb 6, 2025
@johnlanni johnlanni added the type/bug Something isn't working label Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants