mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[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:
parent
229b883e50
commit
a0c7d60f8c
3 changed files with 7 additions and 1 deletions
|
@ -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`,
|
||||
},
|
||||
|
|
|
@ -605,6 +605,9 @@ export interface DocLinks {
|
|||
readonly integrationsConnectorClient: string;
|
||||
readonly integrationsLogstash: string;
|
||||
};
|
||||
readonly serverlessSecurity: {
|
||||
readonly apiKeyPrivileges: string;
|
||||
};
|
||||
readonly synthetics: {
|
||||
readonly featureRoles: string;
|
||||
};
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue