@blakearoberts/visage 0.0.2-rc.0 → 0.0.2
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 +4 -3
- package/dist/compose.d.ts.map +1 -1
- package/dist/index.js +9 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -199,6 +199,7 @@ application accepts form posts or other browser-submitted mutations. CSP,
|
|
|
199
199
|
|
|
200
200
|
- [ ] Harden the default security posture by addressing the
|
|
201
201
|
[security hardening backlog](docs/security-hardening.md).
|
|
202
|
-
- [ ] Support
|
|
203
|
-
- [ ] Support
|
|
204
|
-
- [ ] Support
|
|
202
|
+
- [ ] Support [runtime config reloads](docs/config-reload.md).
|
|
203
|
+
- [ ] Support [Dex connectors](https://dexidp.io/docs/connectors/).
|
|
204
|
+
- [ ] Support Dex on a distinct subdomain, such as `auth.localhost`.
|
|
205
|
+
- [ ] Support [HTTP mode without local TLS](docs/tls-http-mode.md).
|
package/dist/compose.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compose.d.ts","sourceRoot":"","sources":["../src/compose.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C,KAAK,WAAW,GAAG,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"compose.d.ts","sourceRoot":"","sources":["../src/compose.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C,KAAK,WAAW,GAAG,MAAM,IAAI,CAAC;AAK9B,wBAAgB,YAAY,CAAC,MAAM,EAAE,YAAY,GAAG,WAAW,CAgD9D"}
|
package/dist/index.js
CHANGED
|
@@ -577,6 +577,7 @@ function mkcertInstallInstructions() {
|
|
|
577
577
|
}
|
|
578
578
|
|
|
579
579
|
let stopRef;
|
|
580
|
+
let cookieSecret;
|
|
580
581
|
function startCompose(config) {
|
|
581
582
|
stopRef?.();
|
|
582
583
|
stopRef = undefined;
|
|
@@ -591,18 +592,24 @@ function startCompose(config) {
|
|
|
591
592
|
];
|
|
592
593
|
const env = {
|
|
593
594
|
COMPOSE_MENU: 'false',
|
|
594
|
-
[config.secrets.cookieSecret]: randomBytes(32).toString('base64url'),
|
|
595
595
|
...(config.oauth2.public
|
|
596
596
|
? {}
|
|
597
597
|
: { [config.secrets.clientSecret]: config.oauth2.secret }),
|
|
598
598
|
...process.env,
|
|
599
|
+
[config.secrets.cookieSecret]: (cookieSecret ??=
|
|
600
|
+
randomBytes(32).toString('base64url')),
|
|
599
601
|
};
|
|
600
602
|
const opts = {
|
|
601
603
|
cwd: config.cache,
|
|
602
604
|
stdio: ['ignore', output, output],
|
|
603
605
|
env,
|
|
604
606
|
};
|
|
605
|
-
const up = [
|
|
607
|
+
const up = [
|
|
608
|
+
...compose,
|
|
609
|
+
'up',
|
|
610
|
+
'--force-recreate',
|
|
611
|
+
'--remove-orphans',
|
|
612
|
+
];
|
|
606
613
|
const child = spawn('docker', up, opts);
|
|
607
614
|
const stop = () => {
|
|
608
615
|
if (stopRef !== stop)
|
package/package.json
CHANGED