Describe the bug
Since Pulsar 2.9.1, user can produce the message through the Rest API . After activated the authentication and authorization mechanism(JWT) in the broker.conf. The system will show the message
{
"reason": "Unauthorized to produce to topic persistent://bi/a/tls with clientAppId [bi] and authdata org.apache.pulsar.broker.authentication.AuthenticationDataHttps@a69bf62"
}
To Reproduce
Steps to reproduce the behavior:
Activate the security in Pulsar with JWT and assign the role in the tenant
Create the topic through the Pulsar manager under the tenant
Use Postman to POST the message(Use Bearer Token)
See error
The same token value use the JAVA client and node client could successfully produce the message
Using the same token and using CLI mode to produce a message
The client.conf
Producing Results
Expected behavior
The token we provided in the postman not only do the authentication but authorization in Pulsar .
Original Issue: apache/pulsar#13766
Describe the bug Since Pulsar 2.9.1, user can produce the message through the Rest API . After activated the authentication and authorization mechanism(JWT) in the broker.conf. The system will show the message
{ "reason": "Unauthorized to produce to topic persistent://bi/a/tls with clientAppId [bi] and authdata org.apache.pulsar.broker.authentication.AuthenticationDataHttps@a69bf62" }
To Reproduce Steps to reproduce the behavior:
Activate the security in Pulsar with JWT and assign the role in the tenant
Create the topic through the Pulsar manager under the tenant
Use Postman to POST the message(Use Bearer Token)
See error
The same token value use the JAVA client and node client could successfully produce the message
Using the same token and using CLI mode to produce a message The client.conf Producing Results
Expected behavior The token we provided in the postman not only do the authentication but authorization in Pulsar .
Screenshots