[8.9] [Profiling] Elastic Agent: Copy only the creds (#160711) (#160745)

# Backport

This will backport the following commits from `main` to `8.9`:
- [[Profiling] Elastic Agent: Copy only the creds
(#160711)](https://github.com/elastic/kibana/pull/160711)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Cauê
Marcondes","email":"55978943+cauemarcondes@users.noreply.github.com"},"sourceCommit":{"committedDate":"2023-06-28T13:14:45Z","message":"[Profiling]
Elastic Agent: Copy only the creds (#160711)\n\nBefore:\r\n<img
width=\"1227\" alt=\"Screenshot 2023-06-28 at 11 18 36
AM\"\r\nsrc=\"3fc306de-6e92-47c9-b9ed-dc2b5d56a283\">\r\n\r\n\r\nAfter:\r\n<img
width=\"1301\" alt=\"Screenshot 2023-06-28 at 10 47 24
AM\"\r\nsrc=\"542b242c-34f5-445e-bb45-62998284e873\">","sha":"a8620587dfb70c0cd9f263493e526c34a2e39bd9","branchLabelMapping":{"^v8.10.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v8.9.0","v8.10.0"],"number":160711,"url":"https://github.com/elastic/kibana/pull/160711","mergeCommit":{"message":"[Profiling]
Elastic Agent: Copy only the creds (#160711)\n\nBefore:\r\n<img
width=\"1227\" alt=\"Screenshot 2023-06-28 at 11 18 36
AM\"\r\nsrc=\"3fc306de-6e92-47c9-b9ed-dc2b5d56a283\">\r\n\r\n\r\nAfter:\r\n<img
width=\"1301\" alt=\"Screenshot 2023-06-28 at 10 47 24
AM\"\r\nsrc=\"542b242c-34f5-445e-bb45-62998284e873\">","sha":"a8620587dfb70c0cd9f263493e526c34a2e39bd9"}},"sourceBranch":"main","suggestedTargetBranches":["8.9"],"targetPullRequestStates":[{"branch":"8.9","label":"v8.9.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.10.0","labelRegex":"^v8.10.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/160711","number":160711,"mergeCommit":{"message":"[Profiling]
Elastic Agent: Copy only the creds (#160711)\n\nBefore:\r\n<img
width=\"1227\" alt=\"Screenshot 2023-06-28 at 11 18 36
AM\"\r\nsrc=\"3fc306de-6e92-47c9-b9ed-dc2b5d56a283\">\r\n\r\n\r\nAfter:\r\n<img
width=\"1301\" alt=\"Screenshot 2023-06-28 at 10 47 24
AM\"\r\nsrc=\"542b242c-34f5-445e-bb45-62998284e873\">","sha":"a8620587dfb70c0cd9f263493e526c34a2e39bd9"}}]}]
BACKPORT-->

Co-authored-by: Cauê Marcondes <55978943+cauemarcondes@users.noreply.github.com>
This commit is contained in:
Kibana Machine 2023-06-28 10:31:27 -04:00 committed by GitHub
parent 76d6eadc73
commit b70cf70d14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -299,21 +299,23 @@ docker.elastic.co/observability/profiling-agent:${hostAgentVersion} /root/pf-hos
})}
</EuiText>
<EuiSpacer />
<EuiCodeBlock paddingSize="s" isCopyable>
<EuiText style={{ fontWeight: 'bold' }} size="s">
{i18n.translate('xpack.profiling.tabs.elasticAgentIntegrarion.step1.secretToken', {
defaultMessage: 'Secret token: {secretToken}',
values: { secretToken },
defaultMessage: 'Secret token:',
})}
</EuiText>
<EuiCodeBlock paddingSize="s" isCopyable>
{secretToken}
</EuiCodeBlock>
<EuiSpacer size="s" />
<EuiCodeBlock paddingSize="s" isCopyable>
<EuiText style={{ fontWeight: 'bold' }} size="s">
{i18n.translate(
'xpack.profiling.tabs.elasticAgentIntegrarion.step1.collectionAgentUrl',
{
defaultMessage: 'Universal Profiling Collector url: {collectionAgentHost}',
values: { collectionAgentHost },
}
{ defaultMessage: 'Universal Profiling Collector url:' }
)}
</EuiText>
<EuiCodeBlock paddingSize="s" isCopyable>
{collectionAgentHost}
</EuiCodeBlock>
</>
),