Skip to content

Commit 673f544

Browse files
[7.17] [Docs] Scan for unsafe URLs and replace with placeholders (#230083) (#230240)
# Backport This will backport the following commits from `8.19` to `7.17`: - [[Docs] Scan for unsafe URLs and replace with placeholders (#230083)](#230083) <!--- Backport version: 10.0.1 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"florent-leborgne","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-08-01T12:28:13Z","message":"[Docs] Scan for unsafe URLs and replace with placeholders (#230083)\n\nRelates to: https://github.com/elastic/docs-content/issues/1734\nRelates to: https://github.com/elastic/docs-content/issues/1806","sha":"d1feba9c6699eb1306f338d32311eca4309bf8f0","branchLabelMapping":{"^v8.16.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Docs","release_note:skip","docs","v8.0.2","v8.1.4","v8.2.4","v8.3.4","v8.4.4","v8.5.4","v8.6.3","v8.7.2","v8.8.3","v8.9.3","v8.10.5","v8.11.5","v8.12.3","v8.13.5","v8.14.4","backport:version","v8.15.6","v8.19.0","v8.16.7","v7.17.30","v8.17.10","v8.18.5"],"title":"[Docs] Scan for unsafe URLs and replace with placeholders","number":230083,"url":"https://github.com/elastic/kibana/pull/230083","mergeCommit":{"message":"[Docs] Scan for unsafe URLs and replace with placeholders (#230083)\n\nRelates to: https://github.com/elastic/docs-content/issues/1734\nRelates to: https://github.com/elastic/docs-content/issues/1806","sha":"d1feba9c6699eb1306f338d32311eca4309bf8f0"}},"sourceBranch":"8.19","suggestedTargetBranches":["8.0","8.1","8.2","8.3","8.4","8.5","8.6","8.7","8.8","8.9","8.10","8.11","8.12","8.13","8.14","8.15","8.16","7.17","8.17","8.18"],"targetPullRequestStates":[{"branch":"8.0","label":"v8.0.2","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.1","label":"v8.1.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.2","label":"v8.2.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.3","label":"v8.3.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.4","label":"v8.4.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.5","label":"v8.5.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.6","label":"v8.6.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.7","label":"v8.7.2","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.8","label":"v8.8.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.9","label":"v8.9.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.10","label":"v8.10.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.11","label":"v8.11.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.12","label":"v8.12.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.13","label":"v8.13.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.14","label":"v8.14.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.15","label":"v8.15.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/230083","number":230083,"mergeCommit":{"message":"[Docs] Scan for unsafe URLs and replace with placeholders (#230083)\n\nRelates to: https://github.com/elastic/docs-content/issues/1734\nRelates to: https://github.com/elastic/docs-content/issues/1806","sha":"d1feba9c6699eb1306f338d32311eca4309bf8f0"}},{"branch":"8.16","label":"v8.16.7","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"7.17","label":"v7.17.30","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.17","label":"v8.17.10","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT-->
1 parent cacfa7f commit 673f544

File tree

15 files changed

+26
-26
lines changed

15 files changed

+26
-26
lines changed

docs/developer/contributing/development-tests.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,5 +115,5 @@ something simple, e.g. "`computer`".
115115
* Run {kib} with `yarn start --host=computer.local` (substituting
116116
your computer name).
117117
* Now you can run your VM, open the browser, and navigate to
118-
`http://computer.local:5601` to test {kib}.
118+
`<COMPUTER_NAME>.local:5601` to test {kib}.
119119
* Alternatively you can use browserstack

docs/management/connectors/pre-configured-connectors.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ two out-of-the box connectors: <<slack-action-type, Slack>> and <<webhook-action
2424
actionTypeId: .slack <2>
2525
name: 'Slack #xyz' <3>
2626
secrets:
27-
webhookUrl: 'https://hooks.slack.com/services/abcd/efgh/ijklmnopqrstuvwxyz'
27+
webhookUrl: '<WEBHOOK_URL>' <1>
2828
webhook-service:
2929
actionTypeId: .webhook
3030
name: 'Email service'
3131
config: <4>
32-
url: 'https://email-alert-service.elastic.co'
32+
url: '<SERVICE_URL>' <1>
3333
method: post
3434
headers:
3535
header1: value1

docs/management/field-formatters/url-formatter.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ For example, when:
1212

1313
* A field contains a user ID
1414
* A field uses the `Url` field formatter
15-
* The URI template is `http://company.net/profiles?user_id={­{value}­}`
15+
* The URI template is `<BASE_URL>/profiles?user_id={­{value}­}`
1616
1717
The resulting URL replaces `{{value}}` with the user ID from the field.
1818

docs/maps/connect-to-ems.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ services:
213213
{hosted-ems}:
214214
image: {ems-docker-image}
215215
environment:
216-
ELASTICSEARCH_HOST: http://elasticsearch.example.org
216+
ELASTICSEARCH_HOST: <ELASTICSEARCH_HOST_URL>
217217
ELASTICSEARCH_USERNAME: 'ems'
218218
ELASTICSEARCH_PASSWORD: 'changeme'
219219
----------------------------------------------------------
@@ -235,7 +235,7 @@ TIP: The available basemaps and boundaries can be explored from the `/maps` endp
235235
[[elastic-maps-server-kibana]]
236236
==== Kibana configuration
237237

238-
With {hosted-ems} running, add the `map.emsUrl` configuration key in your <<settings, kibana.yml>> file pointing to the root of the service. This setting will point {kib} to request EMS basemaps and boundaries from {hosted-ems}. Typically this will be the URL to the <<ems-host,host and port>> of {hosted-ems}. For example, `map.emsUrl: https://my-ems-server:8080`.
238+
With {hosted-ems} running, add the `map.emsUrl` configuration key in your <<settings, kibana.yml>> file pointing to the root of the service. This setting will point {kib} to request EMS basemaps and boundaries from {hosted-ems}. Typically this will be the URL to the <<ems-host,host and port>> of {hosted-ems}. For example, `map.emsUrl: <BASE_URL>:8080`.
239239

240240

241241
[float]

docs/settings/alert-action-settings.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ xpack.actions.customHostSettings:
7272
-----END CERTIFICATE-----
7373
smtp:
7474
requireTLS: true
75-
- url: https://webhook.example.com
75+
- url: <WEBHOOK_URL>
7676
ssl:
7777
verificationMode: 'none'
7878
--

docs/settings/reporting-settings.asciidoc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -190,35 +190,35 @@ The rule objects are evaluated sequentially from the beginning to the end of the
190190

191191
[source,yaml]
192192
-------------------------------------------------------
193-
# Only allow requests to placeholder.com
193+
# Only allow requests to elastic.co
194194
xpack.reporting.capture.networkPolicy:
195-
rules: [ { allow: true, host: "placeholder.com" } ]
195+
rules: [ { allow: true, host: "elastic.co" } ]
196196
-------------------------------------------------------
197197

198198
[source,yaml]
199199
-------------------------------------------------------
200-
# Only allow requests to https://placeholder.com
200+
# Only allow requests to https://elastic.co
201201
xpack.reporting.capture.networkPolicy:
202-
rules: [ { allow: true, host: "placeholder.com", protocol: "https:" } ]
202+
rules: [ { allow: true, host: "elastic.co", protocol: "https:" } ]
203203
-------------------------------------------------------
204204

205205
A final `allow` rule with no host or protocol allows all requests that are not explicitly denied:
206206

207207
[source,yaml]
208208
-------------------------------------------------------
209-
# Denies requests from http://placeholder.com, but anything else is allowed.
209+
# Denies requests from http://elastic.co, but anything else is allowed.
210210
xpack.reporting.capture.networkPolicy:
211-
rules: [{ allow: false, host: "placeholder.com", protocol: "http:" }, { allow: true }];
211+
rules: [{ allow: false, host: "elastic.co", protocol: "http:" }, { allow: true }];
212212
-------------------------------------------------------
213213

214214
A network policy can be composed of multiple rules:
215215

216216
[source,yaml]
217217
-------------------------------------------------------
218-
# Allow any request to http://placeholder.com but for any other host, https is required
218+
# Allow any request to http://elastic.co but for any other host, https is required
219219
xpack.reporting.capture.networkPolicy
220220
rules: [
221-
{ allow: true, host: "placeholder.com", protocol: "http:" },
221+
{ allow: true, host: "elastic.co", protocol: "http:" },
222222
{ allow: true, protocol: "https:" },
223223
]
224224
-------------------------------------------------------

docs/setup/access.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ include::{docs-root}/shared/cloud/ess-getting-started.asciidoc[]
1414

1515
If you are using a self-managed deployment, access {kib} through the web application on port 5601.
1616

17-
. Point your web browser to the machine where you are running {kib} and specify the port number. For example, `localhost:5601` or `http://YOURDOMAIN.com:5601`.
17+
. Point your web browser to the machine where you are running {kib} and specify the port number. For example, `localhost:5601` or `<HOST_URL>:5601`.
1818
+
1919
To remotely connect to {kib}, set <<server-host,server.host>> to a non-loopback address.
2020

docs/setup/docker.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ services:
146146
image: {docker-image}
147147
environment:
148148
SERVER_NAME: kibana.example.org
149-
ELASTICSEARCH_HOSTS: '["http://es01:9200","http://es02:9200","http://es03:9200"]'
149+
ELASTICSEARCH_HOSTS: '["<HOST_1>:9200","<HOST_2>:9200","<HOST_3>:9200"]'
150150
----------------------------------------------------------
151151

152152
Since environment variables are translated to CLI arguments, they take

docs/user/monitoring/monitoring-kibana.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ ability to access your monitoring data. It also prevents monitoring activities
9393
from impacting the performance of your production cluster.
9494
9595
If {security-features} are enabled on the production cluster, use an HTTPS
96-
URL such as `https://<your_production_cluster>:9200` in this setting.
96+
URL such as `<PRODUCTION_CLUSTER_URL>:9200` in this setting.
9797
===============================
9898

9999
--

docs/user/monitoring/monitoring-metricbeat.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ configuration file (`metricbeat.yml`):
175175
----------------------------------
176176
output.elasticsearch:
177177
# Array of hosts to connect to.
178-
hosts: ["http://es-mon-1:9200", "http://es-mon2:9200"] <1>
178+
hosts: ["<HOST_1>:9200", "<HOST_2>:9200"] <1>
179179
180180
# Optional protocol and basic auth credentials.
181181
#protocol: "https"
@@ -187,7 +187,7 @@ output.elasticsearch:
187187

188188
If you configured the monitoring cluster to use encrypted communications, you
189189
must access it via HTTPS. For example, use a `hosts` setting like
190-
`https://es-mon-1:9200`.
190+
`<HOST_URL>:9200`.
191191

192192
IMPORTANT: The {es} {monitor-features} use ingest pipelines. The
193193
cluster that stores the monitoring data must have at least one node with the

0 commit comments

Comments
 (0)