kibana/docs/setup
elena-shostak 6fc0d971dd
[csp] updated policy for form action in reporting mode (#179949)
## Summary

1. Added `Content-Security-Policy-Report-Only` header.
2. Set `form-action` to `self` in reporting mode.
3. Created [visualization for report only CSP
violation](f6bb1300-0bb7-11ee-adde-d5df298171dd?_g=(filters:!(),refreshInterval:(pause:!t,value:60000),time:(from:'2024-04-03T22:00:00.000Z',to:'2024-04-05T21:30:00.000Z'))).
Generated a couple of reports for testing, here is [telemetry
data](https://stack-telemetry.elastic.dev/s/kibana-platform-security/app/discover#/?_g=(filters:!(),time:(from:now-24h%2Fh,to:now))&_a=(columns:!(timestamp),filters:!(('$state':(store:appState),meta:(alias:'Expected%20CSP%20violation',disabled:!f,index:'14413084-88e4-4fd4-82ba-a69c8b72ec95',negate:!t,params:!((meta:(alias:!n,disabled:!f,field:effectiveDirective,index:'14413084-88e4-4fd4-82ba-a69c8b72ec95',key:effectiveDirective,negate:!f,params:(query:script-src-elem),type:phrase),query:(match_phrase:(effectiveDirective:script-src-elem))),(meta:(alias:!n,disabled:!f,field:blockedURL,index:'14413084-88e4-4fd4-82ba-a69c8b72ec95',key:blockedURL,negate:!f,params:(query:inline),type:phrase),query:(match_phrase:(blockedURL:inline))),('$state':(store:appState),meta:(alias:!n,disabled:!f,field:lineNumber,index:'14413084-88e4-4fd4-82ba-a69c8b72ec95',key:lineNumber,negate:!f,params:(query:'286'),type:phrase),query:(match_phrase:(lineNumber:'286')))),relation:AND,type:combined),query:())),index:'14413084-88e4-4fd4-82ba-a69c8b72ec95',interval:auto,query:(language:kuery,query:'disposition%20:%20%22report%22%20'),sort:!(!(timestamp,desc)))).
4. Added `csp.report_only.form_action` field for additional csp policy
configuration.

### Checklist

Delete any items that are not applicable to this PR.

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [x]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)

### For maintainers

- [x] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

__Fixes: https://github.com/elastic/kibana/issues/179220__

## Release note
Added `Content-Security-Policy-Report-Only` header support.
2024-04-10 22:39:58 +02:00
..
images [DOCS] Updates Canvas with new toolbar (#123418) 2022-01-26 10:40:36 -06:00
install [DOCS] Add link to on-prem install tutorial (#176096) 2024-02-05 10:22:15 -05:00
upgrade Update saved objects migrations documentation for 8.8.0 (#158241) 2023-05-23 15:53:52 +02:00
access.asciidoc (DOC+) Link Kibana Health Troubleshooting blog to related doc (#177907) 2024-03-05 11:15:27 -07:00
configuring-logging.asciidoc [docs-logging]: move developer/architecture docs to user docs (#119125) 2021-11-24 16:42:28 -05:00
configuring-reporting.asciidoc [Reporting] update logs and docs on headless browser connection (#179882) 2024-04-03 08:15:12 -07:00
connect-to-elasticsearch.asciidoc [Cloud] Rename "Endpoints" to "Connection details" (#171982) 2023-11-27 15:58:42 +00:00
docker.asciidoc Revert "[build/docker] Upgrade Ubuntu base image to 22.04 (#162282)" (#170430) 2023-11-02 12:56:17 -05:00
install.asciidoc [Docs] remove Kibana book-scoped variables (#178676) 2024-03-14 11:53:33 -04:00
secure-settings.asciidoc Improve keystore CLI (#157359) 2023-05-16 16:21:25 +02:00
settings.asciidoc [csp] updated policy for form action in reporting mode (#179949) 2024-04-10 22:39:58 +02:00
start-stop.asciidoc [DOCS] Removes Homebrew docs (#125155) 2022-02-09 13:30:49 -08:00
upgrade.asciidoc Adds documentation and improves migrations failing on timeouts while waiting for index yellow status (#130352) 2022-04-21 08:11:39 -07:00