apisix-ingress-controller icon indicating copy to clipboard operation
apisix-ingress-controller copied to clipboard

bug: keyauth header in ApisixRoute CRD doesnt work

Open akalittle opened this issue 3 years ago • 1 comments

Issue description

Follow the doc in ApisixRoute CRD

apiVersion: apisix.apache.org/v2beta3
kind: ApisixRoute
metadata:
  name: status-tracker
  namespace: launcher
spec:
  http:
    - name: status-tracker-rule
      match:
        hosts:
          - api.xxx.cc
        paths:
          - /status-tracker*
      plugins:
        - name: proxy-rewrite
          enable: true
          config:
            regex_uri:
              - ^/status-tracker/(.*)
              - /$1
      backends:
        - serviceName: status-tracker
          servicePort: 8000
      authentication:
        enable: true
        type: keyAuth
        keyAuth:
          header: Authentication

Environment

apache/apisix-ingress-controller:1.4.1

Kubernetes cluster version: Client Version: v1.24.0 Kustomize Version: v4.5.4 Server Version: v1.21.12-gke.2200

Minimal test code / Steps to reproduce

kubectl apply -f the config file

Actual result

image

Error log

no

Expected result

the keyAuth header need to be Authentication

akalittle avatar Aug 03 '22 07:08 akalittle

we can add a test case to cover this one. WDYT @AlinsRan @lingsamuel

tao12345666333 avatar Aug 10 '22 18:08 tao12345666333

This issue has been marked as stale due to 90 days of inactivity. It will be closed in 30 days if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the [email protected] list. Thank you for your contributions.

github-actions[bot] avatar Nov 09 '22 01:11 github-actions[bot]

This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.

github-actions[bot] avatar Dec 10 '22 01:12 github-actions[bot]