@blakearoberts/visage 0.0.1-rc.0 → 0.0.1-rc.10

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 CHANGED
@@ -33,31 +33,36 @@ Visage is configured through `visage(options?)` in `vite.config.ts`.
33
33
 
34
34
  The top-level `host` and `port` configure the local Visage origin that the browser visits:
35
35
 
36
+ ```ts
37
+ visage({ host: 'localhost', port: 9001 });
38
+ ```
39
+
40
+ ### Services
41
+
42
+ Services are Docker Compose services managed by the Vite dev-server lifecycle.
43
+ Additional services automatically get a matching managed upstream with the same
44
+ name, host, and default `/{name}/` location.
45
+
36
46
  ```ts
37
47
  visage({
38
- host: 'localhost',
39
- port: 9001,
48
+ services: { whoami: { image: 'traefik/whoami' } },
40
49
  });
41
50
  ```
42
51
 
43
- Services are Docker Compose services managed by the Vite dev-server lifecycle. Upstreams are proxy targets that Visage routes to, whether they are managed services or external systems.
52
+ ### Upstreams
53
+
54
+ Upstreams are proxy targets that Visage routes to. A top-level upstream with no
55
+ matching service entry is treated as an external upstream.
44
56
 
45
57
  ```ts
46
58
  visage({
47
- services: {
48
- whoami: { image: 'traefik/whoami' },
49
- },
50
59
  upstreams: {
51
- whoami: {
52
- host: 'whoami',
53
- port: 80,
54
- locations: { '/whoami/': {} },
55
- },
60
+ api: { host: 'api.local.test', locations: { '/api/': {} } },
56
61
  },
57
62
  });
58
63
  ```
59
64
 
60
- See `VisageOptions` for the full option surface.
65
+ See [`VisageOptions`](src/types.ts) for the full option surface.
61
66
 
62
67
  ## Expected Local URLs
63
68
 
@@ -97,15 +102,17 @@ flowchart LR
97
102
 
98
103
  ### mkcert
99
104
 
100
- Visage downloads [`mkcert`](https://github.com/FiloSottile/mkcert) from `dl.filippo.io` when the Vite dev server starts. Visage uses it to install a local certificate authority and generate HTTPS certificates for the local proxy.
105
+ Visage downloads [`mkcert`](https://github.com/FiloSottile/mkcert) from `dl.filippo.io` into `$XDG_CACHE_HOME/visage/bin/mkcert-<platform>-<arch>` when the Vite dev server starts. Visage uses it to install a local certificate authority and generate HTTPS certificates for the local proxy.
101
106
 
102
107
  ### Docker Images
103
108
 
104
109
  Visage pulls these as needed based on configuration:
105
110
 
106
- - [NGINX](https://nginx.org/): [`nginx:1.30.0-alpine`](https://hub.docker.com/_/nginx).
107
- - [OAuth2 Proxy](https://oauth2-proxy.github.io/oauth2-proxy/): [`quay.io/oauth2-proxy/oauth2-proxy:v7.15.2`](https://quay.io/repository/oauth2-proxy/oauth2-proxy).
108
- - [Dex](https://dexidp.io/): [`ghcr.io/dexidp/dex:v2.45.1`](https://github.com/dexidp/dex/pkgs/container/dex).
111
+ | Service | Image | Source |
112
+ | ------------------------------------------------------------ | --------------------------------------------------------------------------------------------------- | ------------------------- |
113
+ | [NGINX](https://nginx.org/) | [`nginx:1.30.0-alpine`](https://hub.docker.com/_/nginx) | Docker Hub |
114
+ | [OAuth2 Proxy](https://oauth2-proxy.github.io/oauth2-proxy/) | [`quay.io/oauth2-proxy/oauth2-proxy:v7.15.2`](https://quay.io/repository/oauth2-proxy/oauth2-proxy) | Quay |
115
+ | [Dex](https://dexidp.io/) | [`ghcr.io/dexidp/dex:v2.45.1`](https://github.com/dexidp/dex/pkgs/container/dex) | GitHub Container Registry |
109
116
 
110
117
  ## Security Notes
111
118
 
@@ -118,11 +125,11 @@ Do not treat the managed Dex and OAuth2 Proxy defaults as production auth infras
118
125
  - If startup fails immediately, confirm Docker is running and `docker compose` works.
119
126
  - If NGINX cannot start, check whether the configured `port` is already in use.
120
127
  - If the hostname cannot be resolved, Visage may need permission to update `/etc/hosts`.
121
- - If the browser rejects the certificate, allow the local certificate authority prompt from `mkcert`.
128
+ - If the browser rejects the certificate, allow the local certificate authority prompt from `mkcert`; CI test runners should be configured to ignore local HTTPS errors.
122
129
 
123
130
  ## TO-DO
124
131
 
125
- - [ ] Promote a stable release.
132
+ - [ ] Support SSR injection of identity into HTML responses as script tag elements.
126
133
  - [ ] Support configuring [Dex connectors](https://dexidp.io/docs/connectors/).
127
- - [ ] Support configuring Dex on a distinct subdomain, such as `auth.local.vite.app`.
134
+ - [ ] Support configuring Dex on a distinct subdomain, such as `auth.localhost`.
128
135
  - [ ] Support optional [HTTP mode without local TLS](docs/tls-http-mode.md).
package/dist/certs.d.ts CHANGED
@@ -1,8 +1,7 @@
1
1
  type Options = {
2
- bin: string;
3
2
  certs: string;
4
3
  hostname: string;
5
4
  };
6
- export declare function ensureCerts({ bin, certs, hostname, }: Options): Promise<void>;
5
+ export declare function ensureCerts({ certs, hostname }: Options): Promise<void>;
7
6
  export {};
8
7
  //# sourceMappingURL=certs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"certs.d.ts","sourceRoot":"","sources":["../src/certs.ts"],"names":[],"mappings":"AAMA,KAAK,OAAO,GAAG;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,wBAAsB,WAAW,CAAC,EAChC,GAAG,EACH,KAAK,EACL,QAAQ,GACT,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAiCzB"}
1
+ {"version":3,"file":"certs.d.ts","sourceRoot":"","sources":["../src/certs.ts"],"names":[],"mappings":"AAcA,KAAK,OAAO,GAAG;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAIF,wBAAsB,WAAW,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CA0C7E"}
@@ -1 +1 @@
1
- {"version":3,"file":"compose.d.ts","sourceRoot":"","sources":["../src/compose.ts"],"names":[],"mappings":"AAGA,KAAK,WAAW,GAAG,MAAM,IAAI,CAAC;AAI9B,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,CAoBtD"}
1
+ {"version":3,"file":"compose.d.ts","sourceRoot":"","sources":["../src/compose.ts"],"names":[],"mappings":"AAIA,KAAK,WAAW,GAAG,MAAM,IAAI,CAAC;AAI9B,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,CAwCtD"}
package/dist/config.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { ResolvedConfig } from 'vite';
2
- import type { VisageDexExpiry, VisageDexUser, VisageOptions, VisageService, VisageUpstream } from './types';
2
+ import type { VisageDexExpiry, VisageDexOptions, VisageDexUser, VisageExternalIdpOptions, VisageOptions, VisageProxyPolicy, VisageService, VisageUpstream } from './types';
3
3
  type Volume = readonly [from: string, to: string];
4
4
  type ResolvedCookiePolicy = {
5
5
  readonly cookie_name: string;
@@ -8,35 +8,9 @@ type ResolvedCookiePolicy = {
8
8
  readonly cookie_domains?: readonly string[];
9
9
  readonly cookie_path: string;
10
10
  };
11
- type ResolvedDexConfig = {
12
- readonly expiry?: VisageDexExpiry;
13
- readonly users: readonly Required<VisageDexUser>[];
14
- };
15
11
  type ResolvedIdpOption = {
16
- readonly path: string;
17
- readonly upstream: string;
18
- readonly issuer?: string;
19
- readonly authorizationEndpoint?: string;
20
- readonly tokenEndpoint?: string;
21
- readonly jwksEndpoint?: string;
22
- } & ({
23
- readonly kind: 'dex';
24
- readonly dex: ResolvedDexConfig;
25
- } | {
26
- readonly kind: 'external';
27
- });
28
- type ResolvedIdp = {
29
- readonly issuer: string;
30
- readonly authorizationEndpoint: string;
31
- readonly tokenEndpoint: string;
32
- readonly jwksEndpoint: string;
33
- readonly upstream: string;
34
- } & ({
35
- readonly kind: 'dex';
36
- readonly dex: ResolvedDexConfig;
37
- } | {
38
- readonly kind: 'external';
39
- });
12
+ readonly dex: VisageDexOptions;
13
+ } | VisageExternalIdpOptions;
40
14
  type ResolvedOAuth2Client = {
41
15
  readonly id: string;
42
16
  readonly secret?: string;
@@ -49,14 +23,47 @@ type ResolvedVisageOptions = {
49
23
  readonly cookie: ResolvedCookiePolicy;
50
24
  readonly idp: ResolvedIdpOption;
51
25
  readonly oauth2: ResolvedOAuth2Client;
52
- readonly services?: Record<string, VisageService>;
53
- readonly upstreams?: Record<string, VisageUpstream>;
26
+ readonly services: Readonly<Record<string, VisageService>>;
27
+ readonly upstreams: Record<string, VisageUpstream>;
28
+ };
29
+ type ResolvedBaseIdpConfig = {
30
+ readonly upstream: string;
31
+ readonly issuer: string;
32
+ readonly authorization: string;
33
+ readonly token: string;
34
+ readonly jwks: string;
35
+ };
36
+ type ResolvedDexIdpConfig = ResolvedBaseIdpConfig & {
37
+ readonly dex: {
38
+ readonly expiry?: VisageDexExpiry;
39
+ readonly users: readonly VisageDexUser[];
40
+ };
41
+ };
42
+ type ResolvedExternalIdpConfig = ResolvedBaseIdpConfig & {
43
+ readonly dex?: never;
44
+ };
45
+ type ResolvedIdpConfig = ResolvedDexIdpConfig | ResolvedExternalIdpConfig;
46
+ type ResolvedService = Omit<VisageService, 'upstream'>;
47
+ type ResolvedUpstream = {
48
+ readonly scheme: 'http' | 'https';
49
+ readonly host: string;
50
+ readonly port: number;
51
+ readonly locations: Readonly<Record<string, VisageProxyPolicy>>;
52
+ };
53
+ type ResolvedProxyPolicy = {
54
+ readonly auth: Required<VisageProxyPolicy['auth']>;
55
+ readonly headers: Readonly<Record<string, string>>;
56
+ readonly directives: Readonly<Record<string, readonly string[]>>;
57
+ };
58
+ type ResolvedConfigUpstream = Omit<ResolvedUpstream, 'locations'> & {
59
+ readonly locations: Readonly<Record<string, ResolvedProxyPolicy>>;
60
+ readonly external: boolean;
54
61
  };
55
62
  export type VisageConfig = {
56
63
  readonly host: string;
57
64
  readonly port: number;
58
65
  readonly cookie: ResolvedCookiePolicy;
59
- readonly idp: ResolvedIdp;
66
+ readonly idp: ResolvedIdpConfig;
60
67
  readonly oauth2: ResolvedOAuth2Client;
61
68
  readonly cache: string;
62
69
  readonly files: {
@@ -67,8 +74,8 @@ export type VisageConfig = {
67
74
  readonly oauth2Proxy: Volume;
68
75
  readonly oauth2ProxyClientSecret: Volume;
69
76
  };
70
- readonly services: Readonly<Record<string, VisageService>>;
71
- readonly upstreams: Readonly<Record<string, VisageUpstream>>;
77
+ readonly services: Readonly<Record<string, ResolvedService>>;
78
+ readonly upstreams: Readonly<Record<string, ResolvedConfigUpstream>>;
72
79
  };
73
80
  export declare function resolveOptions(options: VisageOptions): ResolvedVisageOptions;
74
81
  export declare function resolveConfig(options: ResolvedVisageOptions, config: ResolvedConfig, vitePort: number): VisageConfig;
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AAE3C,OAAO,KAAK,EACV,eAAe,EAEf,aAAa,EAEb,aAAa,EAEb,aAAa,EACb,cAAc,EACf,MAAM,SAAS,CAAC;AAEjB,KAAK,MAAM,GAAG,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,CAAC;AAElD,KAAK,oBAAoB,GAAG;IAC1B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,cAAc,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5C,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,QAAQ,CAAC,MAAM,CAAC,EAAE,eAAe,CAAC;IAClC,QAAQ,CAAC,KAAK,EAAE,SAAS,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC;CACpD,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAA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BAAgB,aAAa,CAC3B,OAAO,EAAE,qBAAqB,EAC9B,MAAM,EAAE,cAAc,EACtB,QAAQ,EAAE,MAAM,GACf,YAAY,CAyEd"}
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { Plugin } from 'vite';
2
2
  import type { VisageOptions } from './types';
3
- export type { VisageCookiePolicy, VisageDexExpiry, VisageDexOptions, VisageDexUser, VisageIdpOptions, VisageOAuth2Client, VisageOptions, VisageProxyPolicy, VisageService, VisageUpstream, } from './types';
3
+ export type { VisageCookiePolicy, VisageDexExpiry, VisageDexOptions, VisageDexUser, VisageExternalIdpOptions, VisageOAuth2Client, VisageOptions, VisageProxyPolicy, VisageService, VisageUpstream, } from './types';
4
4
  export declare function visage(options?: VisageOptions): Plugin;
5
5
  export default visage;
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAOnC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,YAAY,EACV,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,aAAa,EACb,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACb,iBAAiB,EACjB,aAAa,EACb,cAAc,GACf,MAAM,SAAS,CAAC;AAEjB,wBAAgB,MAAM,CAAC,OAAO,GAAE,aAAkB,GAAG,MAAM,CAmD1D;AAED,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAOnC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAG7C,YAAY,EACV,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,aAAa,EACb,wBAAwB,EACxB,kBAAkB,EAClB,aAAa,EACb,iBAAiB,EACjB,aAAa,EACb,cAAc,GACf,MAAM,SAAS,CAAC;AAUjB,wBAAgB,MAAM,CAAC,OAAO,GAAE,aAAkB,GAAG,MAAM,CAgE1D;AAED,eAAe,MAAM,CAAC"}