[Serverless Search] Fix API key privileges link (#168290)

## Summary

**Problem:** When creating an API key from the **Getting Started** page,
the "Learn how to structure role descriptors" link under **Security
Privileges** links to
https://www.elastic.co/guide/en/elasticsearch/reference/master/mapping-roles.html.
This page talks about Security realms and isn't relevant for Serverless.

**Solution:** Update the link to the point to a related page in the
Serverless docs instead.

**Note:** We can't apply this to the **API Keys** page under **Project
settings > Management > API keys** as its shared.
This commit is contained in:
James Rodewig 2023-10-10 08:47:15 -05:00 committed by GitHub
parent 229b883e50
commit a0c7d60f8c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 1 deletions

View file

@ -848,6 +848,9 @@ export const getDocLinks = ({ kibanaBranch }: GetDocLinkOptions): DocLinks => {
gettingStartedIngest: `${SERVERLESS_ELASTICSEARCH_DOCS}get-started#ingest`,
gettingStartedSearch: `${SERVERLESS_ELASTICSEARCH_DOCS}get-started#search`,
},
serverlessSecurity: {
apiKeyPrivileges: `${SERVERLESS_DOCS}api-keys#restrict-privileges`,
},
synthetics: {
featureRoles: `${ELASTIC_WEBSITE_URL}guide/en/observability/${DOC_LINK_VERSION}/synthetics-feature-roles.html`,
},

View file

@ -605,6 +605,9 @@ export interface DocLinks {
readonly integrationsConnectorClient: string;
readonly integrationsLogstash: string;
};
readonly serverlessSecurity: {
readonly apiKeyPrivileges: string;
};
readonly synthetics: {
readonly featureRoles: string;
};

View file

@ -57,7 +57,7 @@ class ESDocLinks {
this.kibanaFeedback = newDocLinks.kibana.feedback;
this.kibanaRunApiInConsole = newDocLinks.console.serverlessGuide;
this.metadata = newDocLinks.security.mappingRoles;
this.roleDescriptors = newDocLinks.security.mappingRoles;
this.roleDescriptors = newDocLinks.serverlessSecurity.apiKeyPrivileges;
this.securityApis = newDocLinks.apis.securityApis;
// Client links