You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/08/31 06:54:38 UTC

[GitHub] [apisix] AlinsRan opened a new issue, #7825: feat: the consumer username supports hyphens `-`.

AlinsRan opened a new issue, #7825:
URL: https://github.com/apache/apisix/issues/7825

   ### Description
   
   background:  At apisix-ingress-controller, We want to isolate resources through k8s namespace, for example, construct such a name `namespace_username` to differentiate consumers. K8s namespace supports hyphens `-`, but APISIX consumer username does not support https://github.com/apache/apisix/blob/master/apisix/schema_def.lua#L713.
   
   ```shell
   $ url http://127.0.0.1:9080/apisix/admin/consumers \
    -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
    {
        "username": "namespace-1_jack",
        "plugins": {
            "key-auth": {
                "key": "auth-one"
            }
        }
   }'
   # response
   {"error_msg":"invalid configuration: property \"username\" validation failed: failed to match pattern \"^[a-zA-Z0-9_]+$\" with \"namespace-1_jack\""}
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] feat: the consumer username supports hyphens `-` [apisix]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #7825:
URL: https://github.com/apache/apisix/issues/7825#issuecomment-1905704809

   This issue has been marked as stale due to 350 days of inactivity. It will be closed in 2 weeks 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 dev@apisix.apache.org list. Thank you for your contributions.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix] tokers commented on issue #7825: feat: the consumer username supports hyphens `-`

Posted by GitBox <gi...@apache.org>.
tokers commented on issue #7825:
URL: https://github.com/apache/apisix/issues/7825#issuecomment-1232700170

   If we don't have special considerations about the hyphen symbol, we can support it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] feat: the consumer username supports hyphens `-` [apisix]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #7825: feat: the consumer username supports hyphens `-`
URL: https://github.com/apache/apisix/issues/7825


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] feat: the consumer username supports hyphens `-` [apisix]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #7825:
URL: https://github.com/apache/apisix/issues/7825#issuecomment-1931695112

   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.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org