Skip to content

Commit

Permalink
[Enterprise Search] Grant connector API key monitor/main permissions (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
sphilipse authored Sep 12, 2022
1 parent 5a0313b commit 01d2851
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ describe('generateApiKey lib function', () => {
name: 'index_name-connector',
role_descriptors: {
['index-name-connector-role']: {
cluster: [],
cluster: ['monitor/main'],
index: [
{
names: ['index_name', `${CONNECTORS_INDEX}*`],
Expand Down Expand Up @@ -91,7 +91,7 @@ describe('generateApiKey lib function', () => {
name: 'index_name-connector',
role_descriptors: {
['index-name-connector-role']: {
cluster: [],
cluster: ['monitor/main'],
index: [
{
names: ['index_name', `${CONNECTORS_INDEX}*`],
Expand Down Expand Up @@ -138,7 +138,7 @@ describe('generateApiKey lib function', () => {
name: 'index_name-connector',
role_descriptors: {
['index-name-connector-role']: {
cluster: [],
cluster: ['monitor/main'],
index: [
{
names: ['index_name', `${CONNECTORS_INDEX}*`],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const generateApiKey = async (client: IScopedClusterClient, indexName: st
name: `${indexName}-connector`,
role_descriptors: {
[`${toAlphanumeric(indexName)}-connector-role`]: {
cluster: [],
cluster: ['monitor/main'],
index: [
{
names: [indexName, `${CONNECTORS_INDEX}*`],
Expand Down

0 comments on commit 01d2851

Please sign in to comment.