WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

request help: To understand why the admin api might be creating the username as namespace_consumername #2666

@taherbohri

Description

@taherbohri

Issue description

consumer -

apiVersion: apisix.apache.org/v2
kind: ApisixConsumer
metadata:
  name: apisixtestcon
  namespace: apisix-ns
spec:
  ingressClassName: "apisix"
  authParameter:
        keyAuth:
          value:
            key: *****

consumer inside the admin api calll -


{
            "username": "apisix-ns_apisixtestcon",
            "modifiedIndex": 1763266140636,
            "plugins": {
                "key-auth": {}

When ever a new consumer is added the username gets created inside the apisix admin as namespace_consumername, due to this when ever we are trying to whitelist any consumer in the route we have to add the whitelisted consumer name as namespace_consumername , we just want the consumer name which we are creating should be taken as username instead of what is being created , please let me know if any changes I can do to achieve the above .

Environment

Environment

APISIX version: 3.13.0
APISIX Ingress Controller: 2.0.0-rc5
Deployment mode: Standalone (apisix-standalone provider)
Gateway API: v1
Platform: Kubernetes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions