[Logs App] Fix logs permissions for alert management (#81199)
* Mimics metrics permissions for alert mgmt in logs feature * Updates logs security functional tests Alert management permissions were added for read and all logs users in this PR, so both of these users now have "Stack Management" appear in the nav. Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
052f8277fe
commit
d84ac13a4a
|
@ -68,6 +68,9 @@ export const LOGS_FEATURE = {
|
|||
category: DEFAULT_APP_CATEGORIES.observability,
|
||||
app: ['infra', 'logs', 'kibana'],
|
||||
catalogue: ['infralogging', 'logs'],
|
||||
management: {
|
||||
insightsAndAlerting: ['triggersActions'],
|
||||
},
|
||||
alerting: [LOG_DOCUMENT_COUNT_ALERT_TYPE_ID],
|
||||
privileges: {
|
||||
all: {
|
||||
|
@ -81,6 +84,9 @@ export const LOGS_FEATURE = {
|
|||
alerting: {
|
||||
all: [LOG_DOCUMENT_COUNT_ALERT_TYPE_ID],
|
||||
},
|
||||
management: {
|
||||
insightsAndAlerting: ['triggersActions'],
|
||||
},
|
||||
ui: ['show', 'configureSource', 'save'],
|
||||
},
|
||||
read: {
|
||||
|
@ -90,6 +96,9 @@ export const LOGS_FEATURE = {
|
|||
alerting: {
|
||||
read: [LOG_DOCUMENT_COUNT_ALERT_TYPE_ID],
|
||||
},
|
||||
management: {
|
||||
insightsAndAlerting: ['triggersActions'],
|
||||
},
|
||||
savedObject: {
|
||||
all: [],
|
||||
read: ['infrastructure-ui-source'],
|
||||
|
|
|
@ -58,7 +58,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
|
|||
|
||||
it('shows logs navlink', async () => {
|
||||
const navLinks = (await appsMenu.readLinks()).map((link) => link.text);
|
||||
expect(navLinks).to.eql(['Overview', 'Logs']);
|
||||
expect(navLinks).to.eql(['Overview', 'Logs', 'Stack Management']);
|
||||
});
|
||||
|
||||
describe('logs landing page without data', () => {
|
||||
|
@ -121,7 +121,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
|
|||
|
||||
it('shows logs navlink', async () => {
|
||||
const navLinks = (await appsMenu.readLinks()).map((link) => link.text);
|
||||
expect(navLinks).to.eql(['Overview', 'Logs']);
|
||||
expect(navLinks).to.eql(['Overview', 'Logs', 'Stack Management']);
|
||||
});
|
||||
|
||||
describe('logs landing page without data', () => {
|
||||
|
|
Loading…
Reference in a new issue