@trackunit/iris-app-playwright 0.3.37-alpha-1872e1df7fb.0 → 0.3.38

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/iris-app-playwright",
3
- "version": "0.3.37-alpha-1872e1df7fb.0",
3
+ "version": "0.3.38",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "generators": "./generators.json",
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "peerDependencies": {
40
40
  "@playwright/test": "^1.60.0",
41
- "node-vault": "^0.10.2"
41
+ "node-vault": "^0.10.10"
42
42
  },
43
43
  "peerDependenciesMeta": {
44
44
  "node-vault": {
@@ -58,12 +58,21 @@ const defaultCreateVault = async (env) => {
58
58
  return fail("E2E credentials: install the optional `node-vault` peer dependency for local Vault lookup, " +
59
59
  "or set the E2E_PW_<SLUG> env variable.");
60
60
  }
61
+ // node-vault 0.10.10 applies TLS and the request timeout from `rpDefaults`, which its
62
+ // typings omit, so it is spread in and `satisfies` keeps the keys checked.
61
63
  // `timeout` bounds the whole request so an off-VPN endpoint that black-holes
62
64
  // the connection fails fast (~10s) instead of hanging until the test times out.
65
+ // `strictSSL: true` keeps certificate checks on even when `VAULT_SKIP_VERIFY` is set.
66
+ const vaultTlsDefaults = {
67
+ rpDefaults: {
68
+ strictSSL: true,
69
+ timeout: 10000,
70
+ },
71
+ };
63
72
  const client = nodeVault.default({
64
73
  endpoint,
65
74
  token,
66
- requestOptions: { strictSSL: true, timeout: 10000 },
75
+ ...vaultTlsDefaults,
67
76
  });
68
77
  return { read: secretPath => client.read(secretPath) };
69
78
  };
@@ -72,10 +81,12 @@ const defaultCreateVault = async (env) => {
72
81
  * as opposed to a reachable Vault answering with a 403/404. Off-VPN, the internal
73
82
  * Vault hostname either fails DNS (`ENOTFOUND`/`EAI_AGAIN`) or the connection is
74
83
  * refused/timed out, so these map to an actionable "connect to the VPN" hint.
84
+ * `ECONNABORTED` is the timeout code axios reports (node-vault 0.10.10).
75
85
  */
76
86
  const VAULT_UNREACHABLE_CODES = new Set([
77
87
  "ENOTFOUND",
78
88
  "EAI_AGAIN",
89
+ "ECONNABORTED",
79
90
  "ECONNREFUSED",
80
91
  "ECONNRESET",
81
92
  "ETIMEDOUT",