forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fleet] Use Kibana Authz for API authorization (elastic#205335)
- Loading branch information
1 parent
31079f3
commit fa29978
Showing
26 changed files
with
1,025 additions
and
383 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
32 changes: 32 additions & 0 deletions
32
x-pack/platform/plugins/shared/fleet/server/constants/api_privileges.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import { INTEGRATIONS_PLUGIN_ID, PLUGIN_ID } from '../../common'; | ||
|
||
export const FLEET_API_PRIVILEGES = { | ||
FLEET: { | ||
READ: `${PLUGIN_ID}-read`, | ||
ALL: `${PLUGIN_ID}-all`, | ||
}, | ||
AGENTS: { | ||
READ: `${PLUGIN_ID}-agents-read`, | ||
ALL: `${PLUGIN_ID}-agents-all`, | ||
}, | ||
AGENT_POLICIES: { | ||
READ: `${PLUGIN_ID}-agent-policies-read`, | ||
ALL: `${PLUGIN_ID}-agent-policies-all`, | ||
}, | ||
SETTINGS: { | ||
READ: `${PLUGIN_ID}-settings-read`, | ||
ALL: `${PLUGIN_ID}-settings-all`, | ||
}, | ||
INTEGRATIONS: { | ||
READ: `${INTEGRATIONS_PLUGIN_ID}-read`, | ||
ALL: `${INTEGRATIONS_PLUGIN_ID}-all`, | ||
}, | ||
SETUP: `fleet-setup`, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.