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

bug: secretRef not working for proxy-rewrite #2297

Open
josemrs opened this issue Sep 12, 2024 · 0 comments
Open

bug: secretRef not working for proxy-rewrite #2297

josemrs opened this issue Sep 12, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@josemrs
Copy link

josemrs commented Sep 12, 2024

Current Behavior

Setting the proxy-rewrite config in the Route like this works:

      plugins:
        - name: proxy-rewrite
          enable: true
          config:
            headers:
              set: 
                Authorization: 'Basic Token'

Setting it like this does not work, the field is not configured:

apiVersion: v1
kind: Secret
metadata:
  name: prometheus-auth-header
  namespace: testing-apisix
data:
  headers.set.Authorization: base64AuthHeader
      plugins:
        - name: proxy-rewrite
          enable: true
          secretRef: prometheus-auth-header 

Expected Behavior

The plugins is configured according to the secret when using secretRef

Error Logs

No errors found

Steps to Reproduce

Set up a Route using proxy-rewrite and config the plugin to set a header using secretRef.

Environment

Kubernetes 1.30
Apisix Helm chart 2.8.1

@dosubot dosubot bot added the bug Something isn't working label Sep 12, 2024
@shreemaan-abhishek shreemaan-abhishek transferred this issue from apache/apisix Sep 17, 2024
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
Status: 📋 Backlog
Development

No branches or pull requests

1 participant