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

KongConsumer cannot be programmed. Error: Entity tags missing fields {"name": "", "error": "no name"} #6530

Open
1 task done
konsti opened this issue Sep 26, 2024 · 3 comments
Labels
bug Something isn't working pending author feedback

Comments

@konsti
Copy link

konsti commented Sep 26, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I deploy the KIC with the Kubernetes Gateway Operator. Using the example configuration from the documentation with

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

When I try to create a KongConsumer resource, e.g.:

apiVersion: configuration.konghq.com/v1
kind: KongConsumer
metadata:
  name: example-consumer
  namespace: example
  annotations:
    kubernetes.io/ingress.class: "kong"
username: example-consumer
credentials:
- example-basic-auth

The controller fails to sync the config to the data plane with the following error:

2024-09-26 11:46:46.570	
2024-09-26T09:46:46Z	error	Entity tags missing fields	{"name": "", "error": "no name"}

The data plane reports an 400 error:

"POST /config?check_hash=1&flatten_errors=1 HTTP/1.1" 400 1133 "-" "Go-http-client/1.1"

Switching to versions:

  • kong/kubernetes-ingress-controller:3.2.4 and
  • kong/kong:3.7.1

solves the issue and the KongConsumer is synced.

Expected Behavior

The KongConsumer can be synced without an error.

Steps To Reproduce

1. Install the newest versions of the ingress-controller and kong.
2. Try to create a new `KongConsumer` resource.

Kong Ingress Controller version

3.3.1

Kubernetes version

Server Version: v1.30.4+k3s1

Anything else?

No response

@konsti konsti added the bug Something isn't working label Sep 26, 2024
@randmonkey
Copy link
Contributor

I could not reproduce the issue without the credentials part. The error seems to be triggered by the credentials.
Could you please provide the details of your secret example-basic-auth?

@m-okm
Copy link

m-okm commented Oct 12, 2024

I have the same issue and was able to reproduce it with the basic-auth plugin sample data.

Secret config is:

apiVersion: v1
kind: Secret
metadata:
  name: alex-basic-auth
  labels:
    konghq.com/credential: basic-auth
stringData:
  username: alex
  password: secret123

@fredericve
Copy link

Seeing the same problem here. Using similar config to the sample data. Works fine with older versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pending author feedback
Projects
None yet
Development

No branches or pull requests

4 participants