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

Entity tags missing fields {"name": "", "error": "no name"} #6694

Open
1 task done
mlalam opened this issue Nov 19, 2024 · 2 comments
Open
1 task done

Entity tags missing fields {"name": "", "error": "no name"} #6694

mlalam opened this issue Nov 19, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@mlalam
Copy link

mlalam commented Nov 19, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Deployed basic-auth plugin as per documentation and running into an exception that is not very clear.

Entity tags missing fields {"name": "", "error": "no name"}

Tried to get raw-error using curl command, but nothing returned back.

curl -s http://127.0.0.1:10256/debug/config/raw-error

controlplane-kong-hxbtp-ff5cj-77675858c6-d95x6 controller 2024-11-19T15:00:08Z debug Successfully built data-plane configuration {"v": 1, "duration": "703.205µs"}
controlplane-kong-hxbtp-ff5cj-77675858c6-d95x6 controller 2024-11-19T15:00:08Z debug Sending configuration to gateway clients {"v": 1, "urls": ["https://100-71-4-223.dataplane-admin-kong-v6zcf-mzkm4.kong-system.svc:8444", "https://100-71-22-98.dataplane-admin-kong-v6zcf-mzkm4.kong-system.svc:8444"]}
controlplane-kong-hxbtp-ff5cj-77675858c6-d95x6 controller 2024-11-19T15:00:08Z error Entity tags missing fields {"name": "", "error": "no name"}

Expected Behavior

The error message must be clear in order to fix any configuration issue. Compared the successful one with failed one, not finding any obvious errors (see attached)

curl -s http://127.0.0.1:10256/debug/config/successful
curl -s http://127.0.0.1:10256/debug/config/failed

failed.json
successful.json

Steps To Reproduce

Deploy basic-auth configuration as per documentation.

https://docs.konghq.com/hub/kong-inc/basic-auth/how-to/basic-example/

Kong Ingress Controller version

kong/kubernetes-ingress-controller:3.3.1
kong:3.8.0

Installed using kong-gateway-operator helm chart version 0.2.3

Kubernetes version

Running on EKS 1.29.8

Anything else?

No response

@mlalam mlalam added the bug Something isn't working label Nov 19, 2024
@mlalam
Copy link
Author

mlalam commented Nov 19, 2024

Similar issue was reported under #6530

@mlalam
Copy link
Author

mlalam commented Nov 19, 2024

apiVersion: configuration.konghq.com/v1
kind: KongPlugin
metadata:
  name: api-basic-auth
config:
   hide_credentials: false
plugin: basic-auth
---
apiVersion: v1
kind: Secret
metadata:
  name: kong-manager-admin-basic-auth
  labels:
    konghq.com/credential: basic-auth
stringData:
  username: kong-manager-admin
  password: secret123
---
apiVersion: configuration.konghq.com/v1
kind: KongConsumer
metadata:
  name: kong-manager-admin
  annotations:
    kubernetes.io/ingress.class: kong
custom_id: 0E415660-909F-4FB8-9F34-4E476D5CB94D
username: kong-manager-admin
credentials:
- kong-manager-admin-basic-auth
---

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