Skip to content

Commit

Permalink
Update Console 4.18 section on CSP enablement
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtechszocs committed Feb 14, 2025
1 parent c46dbda commit f230f2a
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions frontend/packages/console-dynamic-plugin-sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,13 +210,10 @@ This section documents notable changes in the Console Content Security Policy im

#### Console 4.18.x

Console deploys CSP in report-only mode; CSP violations will be logged in the browser console
and CSP violation data may be reported through telemetry service in production deployments.

In a future release, Console will begin enforcing CSP. To test your plugin with CSP, enable
the `ConsolePluginContentSecurityPolicy` feature gate on a test cluster. This feature gate
should **not** be enabled on production clusters. Enabling this feature gate also allows you
to set `spec.contentSecurityPolicy` in your `ConsolePlugin` resource to extend existing Console
Console CSP feature is disabled by default. To test your plugins with CSP, enable the
`ConsolePluginContentSecurityPolicy` feature gate on a test cluster. This feature gate
should **not** be enabled on production clusters. Enabling this feature gate allows you
to set `spec.contentSecurityPolicy` in your `ConsolePlugin` resource to extend existing
CSP directives, for example:

```yaml
Expand All @@ -233,6 +230,13 @@ spec:
- 'https://example2.com/'
```
When enabled, Console CSP operates in report-only mode; CSP violations will be logged in
the browser and CSP violation data will be reported through telemetry service in production
deployments.
In a future release, Console will begin enforcing CSP. Consider testing and preparing your
plugins now to avoid CSP related issues in future.
#### Console 4.19.x
The CSP feature is enabled by default. CSP implementation remains in report-only mode.
Expand Down

0 comments on commit f230f2a

Please sign in to comment.