@equinor/fusion-framework-cli 15.5.4 → 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 CHANGED
@@ -1,5 +1,22 @@
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
+
3
20
  ## 15.5.4
4
21
 
5
22
  ### 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