You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "ChinmayHegde24 (via GitHub)" <gi...@apache.org> on 2026/07/15 12:26:49 UTC
[PR] RANGER-5691: Incorrect response seen when admin tries to create a key [ranger]
ChinmayHegde24 opened a new pull request, #1077:
URL: https://github.com/apache/ranger/pull/1077
Incorrect response seen when admin tries to create a key even though he doesn't have permission
curl -ik -u admin:Admin123 --header Accept:application/json -H Content-Type:application/json -K POST '[https://<host>:6182/service/keys/key?provider=kmsdev](https://ccycloud-1.ch-102949.root.comops.site:6182/service/keys/key?provider=kmsdev)' -d '{"name":"testkey1","cipher":"AES/CTR/NoPadding","length":"128","attributes":{}}'
HTTP/1.1 200
Set-Cookie; Path=/; Secure; HttpOnly
X-Frame-Options: DENY
...
...
...
{"length":256,"versions":0}
Here the kmsdev provider is not there but still we get response as 200 this issue is seen in get and other api's as well
Fix: Fix is made to ensure that exception doesn't get swallowed and propagates to caller in KmsKeyMgr
and gives 400 Bad request when invalid provider is given
--
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: dev-unsubscribe@ranger.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] RANGER-5691: Incorrect response seen when admin tries to create a key [ranger]
Posted by "pradeepagrawal8184 (via GitHub)" <gi...@apache.org>.
pradeepagrawal8184 merged PR #1077:
URL: https://github.com/apache/ranger/pull/1077
--
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: dev-unsubscribe@ranger.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org