mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-30 18:17:55 +00:00
Prevent Requests to resultant-acl Endpoint When Unauthenticated (#17139)
* prevents requests to resultant-acl endpoint when not logged in * removes unauthenticated mentions from resultant-acl api doc * adds changelog entry
This commit is contained in:
6
changelog/17139.txt
Normal file
6
changelog/17139.txt
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
```release-note:improvement
|
||||||
|
ui: Prevents requests to /sys/internal/ui/resultant-acl endpoint when unauthenticated
|
||||||
|
```
|
||||||
|
```release-note:improvement
|
||||||
|
website/docs: Removes mentions of unauthenticated from internal ui resultant-acl doc
|
||||||
|
```
|
||||||
@@ -72,7 +72,9 @@ export default Route.extend(ModelBoundaryRoute, ClusterRoute, {
|
|||||||
const id = this.getClusterId(params);
|
const id = this.getClusterId(params);
|
||||||
if (id) {
|
if (id) {
|
||||||
this.auth.setCluster(id);
|
this.auth.setCluster(id);
|
||||||
await this.permissions.getPaths.perform();
|
if (this.auth.currentToken) {
|
||||||
|
await this.permissions.getPaths.perform();
|
||||||
|
}
|
||||||
return this.version.fetchFeatures();
|
return this.version.fetchFeatures();
|
||||||
} else {
|
} else {
|
||||||
return reject({ httpStatus: 404, message: 'not found', path: params.cluster_name });
|
return reject({ httpStatus: 404, message: 'not found', path: params.cluster_name });
|
||||||
|
|||||||
@@ -8,11 +8,10 @@ description: >-
|
|||||||
# `/sys/internal/ui/resultant-acl`
|
# `/sys/internal/ui/resultant-acl`
|
||||||
|
|
||||||
The `/sys/internal/ui/resultant-acl` endpoint is used to expose resultant-acl
|
The `/sys/internal/ui/resultant-acl` endpoint is used to expose resultant-acl
|
||||||
to the UI so that it can change its behavior in response, even before a user logs in.
|
to the UI so that it can change its behavior in response.
|
||||||
|
|
||||||
This is currently only being used internally for the UI and is
|
This is currently only being used internally for the UI. Due to the nature of its
|
||||||
an unauthenticated endpoint. Due to the nature of its intended usage, there is no
|
intended usage, there is no guarantee on backwards compatibility for this endpoint.
|
||||||
guarantee on backwards compatibility for this endpoint.
|
|
||||||
|
|
||||||
## Get Resultant-acl
|
## Get Resultant-acl
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user