Skip to content

Commit b8e87b7

Browse files
committed
Added CSRF protection docs
1 parent 59db9e9 commit b8e87b7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

content/docs/Configuration/Security.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,11 @@ If server_uri is set to the https endpoint and the OpenRun server is running wit
6767

6868
## Application Security
6969

70-
See [appsecurity]({{< ref "appsecurity" >}}) for details about the application level sandboxing.
70+
See [appsecurity]({{< ref "appsecurity" >}}) for details about the application level sandboxing and [authentication]({{< ref "authentication" >}}) for details about adding OAuth/OIDC/SAML/Cert based auth for apps.
71+
72+
## CSRF Protection
73+
74+
CSRF protection is automatically enabled for OpenRun internal APIs and for API calls to apps. This uses the [CrossOriginProtection](https://pkg.go.dev/net/http#CrossOriginProtection) middleware. Use `app_config.security.disable_csrf_protection = true` in `openrun.toml` to disable globally for all apps. CSRF protection can be disabled individually for apps by running `openrun app update-metadata conf --promote 'security.disable_csrf_protection=true' /myapp`
7175

7276
## Private Repository Access
7377

0 commit comments

Comments
 (0)