@scalio-cloud/ui 0.105.2 → 0.106.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/nginx/security-headers.conf +3 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -53,7 +53,7 @@ fails on an export without a type, a type without an export, and an `exports` pa
|
|
|
53
53
|
|
|
54
54
|
`nginx/security-headers.conf` holds the security headers of every Scalio app (security review M6): `nosniff`,
|
|
55
55
|
framing only by the own origin, no plugins, `Referrer-Policy`, no camera/microphone/location. From 0.104.0 also HSTS
|
|
56
|
-
(one year, `includeSubDomains
|
|
56
|
+
(one year, without `includeSubDomains`, from 0.106.0) and a Content-Security-Policy (BL-1080): scripts only from the own origin (no inline
|
|
57
57
|
script, no `eval`), inline styles allowed, images also `data:`, `blob:` and HTTPS, fonts `data:`, connections to
|
|
58
58
|
HTTPS/WSS. The file explains every exception. An app that needs more (another script host, `eval`) must say so
|
|
59
59
|
before it upgrades; test the upgrade on dev with the browser console open (CSP errors show there).
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
# app's Dockerfile to /etc/nginx/snippets/. Include it in the server block AND in every location that has its own
|
|
3
3
|
# add_header: nginx drops the server-level add_header lines in such a location.
|
|
4
4
|
#
|
|
5
|
-
# HSTS: one year,
|
|
5
|
+
# HSTS: one year, no includeSubDomains (self-hosted apps often run on the customer's apex domain, so all its
|
|
6
|
+
# subdomains would be forced to HTTPS for a year), no preload (preload cannot be undone quickly). Browsers ignore it over plain
|
|
6
7
|
# HTTP, so an instance without TLS keeps working.
|
|
7
8
|
#
|
|
8
9
|
# Content-Security-Policy, what each part allows and why:
|
|
@@ -19,7 +20,7 @@
|
|
|
19
20
|
# frame-ancestors 'self' framing only by the own origin (same as X-Frame-Options)
|
|
20
21
|
# object-src 'none'; base-uri 'self' no plugins, no <base> from injected markup
|
|
21
22
|
# No form-action: the Microsoft sign-in leaves by redirect, and Chrome checks form-action on redirects as well.
|
|
22
|
-
add_header Strict-Transport-Security "max-age=31536000
|
|
23
|
+
add_header Strict-Transport-Security "max-age=31536000" always;
|
|
23
24
|
add_header X-Content-Type-Options "nosniff" always;
|
|
24
25
|
add_header X-Frame-Options "SAMEORIGIN" always;
|
|
25
26
|
add_header Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob: https:; font-src 'self' data:; connect-src 'self' https: wss:; frame-src 'self' blob:; worker-src 'self' blob:; frame-ancestors 'self'; object-src 'none'; base-uri 'self'" always;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scalio-cloud/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.106.0",
|
|
4
4
|
"description": "Scalio Control Room design tokens, Tailwind preset, self-hosted fonts, the shared app header, sign-in layout, sidebar and page blocks",
|
|
5
5
|
"license": "SEE LICENSE IN README.md",
|
|
6
6
|
"private": false,
|