@equinor/fusion-framework-cli 15.5.2 → 15.6.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/CHANGELOG.md +41 -0
- package/README.md +28 -0
- package/bin/build/bin.mjs +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/types/bin/configure-framework.test.d.ts +1 -0
- package/dist/types/bin/index.d.ts +1 -0
- package/dist/types/bin/utils/create-dev-server-config.d.ts +6 -0
- package/dist/types/bin/utils/create-dev-server.test.d.ts +1 -0
- package/dist/types/bin/utils/identify-request.d.ts +22 -0
- package/dist/types/bin/utils/identify-request.test.d.ts +1 -0
- package/dist/types/bin/utils/index.d.ts +1 -0
- package/dist/types/bin/utils/resolve-mock-auth-endpoint.d.ts +16 -0
- package/dist/types/bin/utils/resolve-mock-auth-endpoint.test.d.ts +1 -0
- package/dist/types/version.d.ts +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,46 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 15.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- df4548d: Identify every outgoing CLI request to Fusion services, not only publish, upload, check and tag calls.
|
|
8
|
+
|
|
9
|
+
`configureFramework` now registers the `X-Fusion-CLI-Name`, `X-Fusion-CLI-Version` and `User-Agent` headers on the framework HTTP client, so service discovery lookups and every other client created from it carry them too. Headers already set on a request are kept. `defaultHeaders` is now exported from `@equinor/fusion-framework-cli/bin`. Requests forwarded by the dev server keep identifying as the dev server (`X-Fusion-Dev-Server-*`). See [Request identification headers](https://github.com/equinor/fusion-framework/tree/main/packages/cli#request-identification-headers).
|
|
10
|
+
|
|
11
|
+
Fixes: https://github.com/equinor/fusion-core-tasks/issues/2207
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [fa4dba6]
|
|
16
|
+
- @equinor/fusion-framework-vite-plugin-react-router@0.1.3
|
|
17
|
+
- @equinor/fusion-framework-dev-server@2.3.1
|
|
18
|
+
- @equinor/fusion-framework-dev-portal@11.1.5
|
|
19
|
+
|
|
20
|
+
## 15.5.4
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- f858a7d: Send service discovery to the mock server whenever mock authentication is enabled.
|
|
25
|
+
|
|
26
|
+
Previously `FUSION_SPA_MSAL_MOCK=true` (from the environment or a `.env` file) only switched the SPA to unsigned mock tokens, while `ffc app dev` and `ffc app serve` kept forwarding service discovery to the real CI environment. Every page load — for example in a Playwright suite — sent a mock token to `discovery.fusion.equinor.com` and failed with `401`.
|
|
27
|
+
|
|
28
|
+
Mock auth now implies mock discovery, exactly like `--mock`: the dev server uses `FUSION_SPA_MSAL_MOCK_SERVER_URL`, or `http://localhost:4010` when only `FUSION_SPA_MSAL_MOCK` is set. `--mock` still takes precedence. Start the mock server with `ffc mock-server` before running the app.
|
|
29
|
+
- f858a7d: Refuse to start the dev server in mock mode when service discovery does not point at the mock server. A `dev-server.config` that overrides `api.serviceDiscoveryUrl` while `--mock` (or `FUSION_SPA_MSAL_MOCK`) is active now fails at startup with a clear error instead of sending mock tokens to real service discovery.
|
|
30
|
+
- f858a7d: `ffc app dev`, `ffc app serve`, and `ffc portal dev` add `X-Fusion-Mock: true|false` to every request the dev server proxies upstream, so upstream telemetry shows whether the caller ran with mock authentication.
|
|
31
|
+
- Updated dependencies [71108a9]
|
|
32
|
+
- Updated dependencies [f858a7d]
|
|
33
|
+
- @equinor/fusion-framework-dev-portal@11.1.4
|
|
34
|
+
- @equinor/fusion-framework-dev-server@2.3.0
|
|
35
|
+
|
|
36
|
+
## 15.5.3
|
|
37
|
+
|
|
38
|
+
### Patch Changes
|
|
39
|
+
|
|
40
|
+
- a23ec8a: Internal: bump `@types/adm-zip` from `0.5.8` to `0.6.0`.
|
|
41
|
+
- @equinor/fusion-framework-dev-portal@11.1.3
|
|
42
|
+
- @equinor/fusion-framework-dev-server@2.2.1
|
|
43
|
+
|
|
3
44
|
## 15.5.2
|
|
4
45
|
|
|
5
46
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -199,6 +199,34 @@ export default defineFusionCli(() => ({
|
|
|
199
199
|
}));
|
|
200
200
|
```
|
|
201
201
|
|
|
202
|
+
## Request identification headers
|
|
203
|
+
|
|
204
|
+
Every request the CLI itself sends to Fusion services identifies the tool and its version, so
|
|
205
|
+
service operators can tell Fusion Framework traffic apart from other callers when investigating
|
|
206
|
+
unexpected requests (for example in Fusion Discovery logs).
|
|
207
|
+
|
|
208
|
+
| Header | Value |
|
|
209
|
+
| ---------------------- | ---------------------------------------- |
|
|
210
|
+
| `X-Fusion-CLI-Name` | `fusion-framework-cli` |
|
|
211
|
+
| `X-Fusion-CLI-Version` | The installed CLI version, e.g. `15.5.3` |
|
|
212
|
+
| `User-Agent` | `fusion-framework-cli/<version>` |
|
|
213
|
+
|
|
214
|
+
This covers service discovery lookups and every other client created by `configureFramework`,
|
|
215
|
+
publish, upload, check and tag calls, and the AI model, embedding and search index calls. It uses
|
|
216
|
+
the same `X-Fusion-CLI-*` convention as the other Fusion CLIs, so one filter on `x-fusion-cli-name`
|
|
217
|
+
finds all of them.
|
|
218
|
+
|
|
219
|
+
Requests forwarded by the dev server (`ffc app dev`, `ffc app serve`, `ffc portal dev`) are not CLI
|
|
220
|
+
calls. They identify the dev server instead with `X-Fusion-Dev-Server-Name` and
|
|
221
|
+
`X-Fusion-Dev-Server-Version`, plus `X-Fusion-Mock: true|false`; see the
|
|
222
|
+
[dev server README](../dev-server/README.md#requirements-and-boundaries).
|
|
223
|
+
|
|
224
|
+
- **Diagnostics only.** The values can be faked, so never use them for access control. They never
|
|
225
|
+
contain tokens, secrets, or personal information.
|
|
226
|
+
- **Caller headers win.** A header already set on a request is never overwritten.
|
|
227
|
+
- **Programmatic use.** `defaultHeaders` is exported from `@equinor/fusion-framework-cli/bin`, and
|
|
228
|
+
`configureFramework` registers it on the framework HTTP client for you.
|
|
229
|
+
|
|
202
230
|
## Documentation
|
|
203
231
|
|
|
204
232
|
- [Developing Apps](docs/application.md) — build, configure, and deploy applications
|