sijie opened a new issue #2304: URL Encoding problem on Pulsar Admin CLI URL: https://github.com/apache/incubator-pulsar/issues/2304 *Problem* ``` are roles not allowed to have forward slashes? in their name ```root@pulsar-admin:/pulsar# pulsar-admin namespaces grant-permission --actions produce,consume --role 'spiffe://developer/passport' core-platform/testing HTTP 404 Not Found Reason: HTTP 404 Not Found root@pulsar-admin:/pulsar# pulsar-admin namespaces grant-permission --actions produce,consume --role 'spiffe:\/\/developer\/passport' core-platform/testing HTTP 404 Not Found Reason: HTTP 404 Not Found root@pulsar-admin:/pulsar# pulsar-admin namespaces grant-permission --actions produce,consume --role 'foo' core-platform/testing root@pulsar-admin:/pulsar# pulsar-admin namespaces permissions core-platform/testing { "foo" : [ "produce", "consume" ] }``` Josh West [11:26 AM] @sijieg this looks like a `pulsar-admin` issue as well with URL encoding Josh West [11:26 AM] if i write out the role using %2F instead of / then the command succeeds ```root@pulsar-admin:/pulsar# pulsar-admin namespaces grant-permission --actions produce,consume --role 'spiffe:%2F%2Fdeveloper%2Fpassport' core-platform/testing root@pulsar-admin:/pulsar# curl -k --cert /tls/client.pem --key /tls/client-key.pem https://pulsar-broker:8443/admin/v2/namespaces/core-platform/testing/permissions | jq . % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 81 100 81 0 0 1819 0 --:--:-- --:--:-- --:--:-- 1840 { "foo": [ "consume", "produce" ], "spiffe://developer/passport": [ "consume", "produce" ] }``` ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
