@stacksjs/ts-cloud 0.9.2 → 0.9.4

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.
Files changed (191) hide show
  1. package/dist/aws/index.js +1 -269
  2. package/dist/bin/chunk-00kg80qg.js +1 -0
  3. package/dist/bin/chunk-09nwf2gy.js +34 -0
  4. package/dist/bin/chunk-1k5kszjp.js +111 -0
  5. package/dist/bin/chunk-21e0mavm.js +1 -0
  6. package/dist/bin/chunk-271gk1n2.js +6 -0
  7. package/dist/bin/chunk-2empps47.js +2 -0
  8. package/dist/bin/chunk-38pq971s.js +2 -0
  9. package/dist/bin/chunk-3gykfyq4.js +37 -0
  10. package/dist/bin/chunk-3vqfexc4.js +70 -0
  11. package/dist/bin/chunk-4vrqm9h0.js +2 -0
  12. package/dist/bin/chunk-598yf4bs.js +1 -0
  13. package/dist/bin/chunk-5ectjq0b.js +1 -0
  14. package/dist/bin/chunk-5erkxpt7.js +512 -0
  15. package/dist/bin/chunk-5mrtzemj.js +1 -0
  16. package/dist/bin/chunk-5n9fmabb.js +1 -0
  17. package/dist/bin/chunk-9knpg30y.js +1 -0
  18. package/dist/bin/chunk-9pvsff8g.js +1 -0
  19. package/dist/bin/chunk-ax9mr6wm.js +44 -0
  20. package/dist/bin/chunk-axhnkn5g.js +2 -0
  21. package/dist/bin/chunk-c1vcdgvr.js +1 -0
  22. package/dist/bin/chunk-ctd2vg9w.js +2 -0
  23. package/dist/bin/chunk-dbgffky8.js +1 -0
  24. package/dist/bin/chunk-ddk4rt4j.js +6 -0
  25. package/dist/bin/chunk-dwr30vbv.js +1 -0
  26. package/dist/bin/chunk-e0rkrq70.js +1 -0
  27. package/dist/bin/chunk-e3xrwh9z.js +1 -0
  28. package/dist/bin/chunk-etrb03mt.js +1507 -0
  29. package/dist/bin/chunk-fhc6ntvd.js +2 -0
  30. package/dist/bin/chunk-fpm59y25.js +6 -0
  31. package/dist/bin/chunk-fvbxvq6b.js +1 -0
  32. package/dist/bin/chunk-fy8j3y8p.js +92 -0
  33. package/dist/bin/chunk-fz21b57w.js +1 -0
  34. package/dist/bin/chunk-gavvf0pg.js +141 -0
  35. package/dist/bin/chunk-ggn7ax8p.js +4 -0
  36. package/dist/bin/chunk-gpe2prkm.js +1 -0
  37. package/dist/bin/chunk-h5pa5men.js +2 -0
  38. package/dist/bin/chunk-hm08xdxf.js +2 -0
  39. package/dist/bin/chunk-hzgz13nf.js +1 -0
  40. package/dist/bin/chunk-j703btc5.js +50 -0
  41. package/dist/bin/chunk-k9t9wvms.js +1 -0
  42. package/dist/bin/chunk-m669wtgr.js +1 -0
  43. package/dist/bin/chunk-m7dgskt1.js +1 -0
  44. package/dist/bin/chunk-mh0kdzqp.js +2 -0
  45. package/dist/bin/chunk-mr0atd2s.js +2 -0
  46. package/dist/bin/chunk-mz0wbbsj.js +3 -0
  47. package/dist/bin/chunk-ngcyftm2.js +1 -0
  48. package/dist/bin/chunk-p66ptpmr.js +2 -0
  49. package/dist/bin/chunk-qk9qgepa.js +1 -0
  50. package/dist/bin/chunk-rxcvf10f.js +7364 -0
  51. package/dist/bin/chunk-rytk89az.js +60 -0
  52. package/dist/bin/chunk-tga3hhwk.js +6 -0
  53. package/dist/bin/chunk-tx0tqq2k.js +8 -0
  54. package/dist/bin/chunk-vek8a0w6.js +1 -0
  55. package/dist/bin/chunk-vm3q5gf2.js +3 -0
  56. package/dist/bin/chunk-y7s5r8y6.js +3 -0
  57. package/dist/bin/chunk-yv9sth30.js +1 -0
  58. package/dist/bin/chunk-zmegvjp8.js +581 -0
  59. package/dist/bin/cli.js +417 -10597
  60. package/dist/bin/dashboard-server.js +1 -6998
  61. package/dist/chunk-0ccta6z6.js +6 -0
  62. package/dist/chunk-0k1cs6pp.js +1 -0
  63. package/dist/chunk-1egjn203.js +704 -0
  64. package/dist/chunk-2wx29qga.js +5 -0
  65. package/dist/chunk-5m5rqmv7.js +1 -0
  66. package/dist/chunk-8ea5022g.js +114 -0
  67. package/dist/chunk-8xqn3c0w.js +2 -0
  68. package/dist/chunk-b4esxhmw.js +2 -0
  69. package/dist/chunk-b8e5wzwn.js +44 -0
  70. package/dist/chunk-bggt4n6e.js +2 -0
  71. package/dist/chunk-cwkg37rs.js +37 -0
  72. package/dist/chunk-dskvqt67.js +7355 -0
  73. package/dist/chunk-gahsdmxf.js +1617 -0
  74. package/dist/chunk-gnv3r2jg.js +1 -0
  75. package/dist/chunk-hg3c48cp.js +34 -0
  76. package/dist/chunk-m5azeva3.js +2 -0
  77. package/dist/chunk-r3qf56b3.js +92 -0
  78. package/dist/chunk-sdqa9ghv.js +141 -0
  79. package/dist/chunk-svrvvcm7.js +1 -0
  80. package/dist/chunk-v0p3hpc3.js +60 -0
  81. package/dist/chunk-wdzjbecg.js +50 -0
  82. package/dist/chunk-ww8k3g7j.js +1 -0
  83. package/dist/chunk-xmqfc62w.js +1 -0
  84. package/dist/chunk-xrebj679.js +435 -0
  85. package/dist/chunk-xt3s24vr.js +2 -0
  86. package/dist/chunk-y21zk0pn.js +4 -0
  87. package/dist/deploy/attach-credentials.d.ts +57 -0
  88. package/dist/deploy/index.js +1 -168
  89. package/dist/deploy/site-ports.d.ts +151 -0
  90. package/dist/deploy/site-target.d.ts +24 -1
  91. package/dist/dns/index.js +1 -41
  92. package/dist/drivers/index.js +1 -154
  93. package/dist/index.js +100 -6129
  94. package/dist/protection/index.js +1 -89
  95. package/dist/push/index.js +1 -509
  96. package/dist/spend/index.js +1 -173
  97. package/dist/ui/404.html +16 -548
  98. package/dist/ui/_stx/chunk.5ddb5087.js +90 -0
  99. package/dist/ui/_stx/chunk.9fd39d5b.js +86 -0
  100. package/dist/ui/_stx/chunk.d5301f79.js +119 -0
  101. package/dist/ui/_stx/crosswind.222ed683.css +1 -0
  102. package/dist/ui/_stx/crosswind.616c25f3.css +1 -0
  103. package/dist/ui/_stx/crosswind.80baa894.css +320 -0
  104. package/dist/ui/_stx/crosswind.906ee17c.css +1 -0
  105. package/dist/ui/_stx/crosswind.996ed49e.css +1 -0
  106. package/dist/ui/_stx/crosswind.b7a99a5c.css +1 -0
  107. package/dist/ui/_stx/router.fa5bc4dc.js +4 -0
  108. package/dist/ui/_stx/runtime.c696d17a.js +1 -0
  109. package/dist/ui/_stx/style.448ab192.css +1 -0
  110. package/dist/ui/accept-invitation.html +2 -1133
  111. package/dist/ui/access-denied.html +7 -1130
  112. package/dist/ui/account/automation.html +12 -1134
  113. package/dist/ui/account/security.html +13 -1136
  114. package/dist/ui/applications/compose.html +12 -1134
  115. package/dist/ui/applications/new.html +13 -1137
  116. package/dist/ui/data/backups.html +91 -1136
  117. package/dist/ui/data/services.html +89 -1136
  118. package/dist/ui/data/volumes.html +61 -1136
  119. package/dist/ui/index.html +60 -1136
  120. package/dist/ui/infrastructure/topology.html +128 -1135
  121. package/dist/ui/integrations.html +13 -1138
  122. package/dist/ui/operations/alerts.html +59 -1136
  123. package/dist/ui/operations/configuration.html +13 -1135
  124. package/dist/ui/operations/jobs.html +87 -1136
  125. package/dist/ui/operations/maintenance.html +12 -1134
  126. package/dist/ui/operations/observability.html +93 -1136
  127. package/dist/ui/operations/previews.html +12 -1134
  128. package/dist/ui/operations/queue.html +12 -1134
  129. package/dist/ui/operations/regions.html +12 -1134
  130. package/dist/ui/operations/releases.html +12 -1134
  131. package/dist/ui/operations/spend.html +65 -1136
  132. package/dist/ui/operations/workloads.html +115 -1136
  133. package/dist/ui/robots.txt +2 -0
  134. package/dist/ui/security.html +24 -1136
  135. package/dist/ui/server/actions.html +67 -1138
  136. package/dist/ui/server/activity.html +7 -1130
  137. package/dist/ui/server/capacity.html +12 -1134
  138. package/dist/ui/server/database.html +166 -1135
  139. package/dist/ui/server/deployments.html +60 -1136
  140. package/dist/ui/server/diagnostics.html +7 -1130
  141. package/dist/ui/server/firewall.html +286 -1212
  142. package/dist/ui/server/fleet.html +45 -1136
  143. package/dist/ui/server/logs.html +34 -1135
  144. package/dist/ui/server/metrics.html +124 -1140
  145. package/dist/ui/server/security.html +7 -1130
  146. package/dist/ui/server/services.html +46 -1133
  147. package/dist/ui/server/sites.html +287 -1137
  148. package/dist/ui/server/ssh-keys.html +62 -1135
  149. package/dist/ui/server/team.html +155 -1136
  150. package/dist/ui/server/terminal.html +97 -1183
  151. package/dist/ui/serverless/alarms.html +62 -1135
  152. package/dist/ui/serverless/assets.html +47 -1132
  153. package/dist/ui/serverless/cost.html +7 -1130
  154. package/dist/ui/serverless/data.html +46 -1135
  155. package/dist/ui/serverless/deployments.html +47 -1132
  156. package/dist/ui/serverless/firewall.html +7 -1130
  157. package/dist/ui/serverless/functions.html +50 -1136
  158. package/dist/ui/serverless/logs.html +34 -1135
  159. package/dist/ui/serverless/metrics.html +7 -1130
  160. package/dist/ui/serverless/queues.html +58 -1135
  161. package/dist/ui/serverless/secrets.html +62 -1136
  162. package/dist/ui/serverless/traces.html +12 -1134
  163. package/dist/ui/serverless.html +64 -1137
  164. package/dist/ui-src/pages/server/firewall.stx +14 -14
  165. package/package.json +3 -3
  166. package/dist/chunk-01d86gt1.js +0 -1324
  167. package/dist/chunk-050r7ycy.js +0 -46516
  168. package/dist/chunk-29rse4p1.js +0 -12203
  169. package/dist/chunk-32e7ya18.js +0 -642
  170. package/dist/chunk-4cjrg98a.js +0 -597
  171. package/dist/chunk-50jpda9q.js +0 -371
  172. package/dist/chunk-6a1t7fnq.js +0 -12121
  173. package/dist/chunk-728jvrr0.js +0 -1701
  174. package/dist/chunk-7m60qnc8.js +0 -1762
  175. package/dist/chunk-aa2dkn7b.js +0 -205
  176. package/dist/chunk-d48vtdj4.js +0 -433
  177. package/dist/chunk-f55nkpvb.js +0 -8
  178. package/dist/chunk-fgk8cqew.js +0 -152
  179. package/dist/chunk-he9a874b.js +0 -769
  180. package/dist/chunk-hg7rhrgd.js +0 -7274
  181. package/dist/chunk-k2yyatfw.js +0 -10
  182. package/dist/chunk-k4px0bnv.js +0 -23
  183. package/dist/chunk-nsgqsmrh.js +0 -1779
  184. package/dist/chunk-qr803fye.js +0 -2122
  185. package/dist/chunk-rds0sy87.js +0 -1771
  186. package/dist/chunk-rxgchb08.js +0 -42033
  187. package/dist/chunk-ttz2ra5j.js +0 -12
  188. package/dist/chunk-v0bahtg2.js +0 -4
  189. package/dist/chunk-va2yd85b.js +0 -200
  190. package/dist/chunk-x9s0cqfx.js +0 -13
  191. package/dist/chunk-zqtpg06c.js +0 -1752
@@ -1,12 +0,0 @@
1
- import {
2
- EmailClient,
3
- email
4
- } from "./chunk-nsgqsmrh.js";
5
- import"./chunk-32e7ya18.js";
6
- import"./chunk-rds0sy87.js";
7
- import"./chunk-zqtpg06c.js";
8
- import"./chunk-v0bahtg2.js";
9
- export {
10
- email,
11
- EmailClient
12
- };
@@ -1,4 +0,0 @@
1
- import { createRequire } from "node:module";
2
- var __require = /* @__PURE__ */ createRequire(import.meta.url);
3
-
4
- export { __require };
@@ -1,200 +0,0 @@
1
- // src/protection/waf.ts
2
- var DEFAULTS = {
3
- mode: "detection",
4
- paranoiaLevel: 1,
5
- inboundThreshold: 5,
6
- outboundThreshold: 4,
7
- maxBodyBytes: 13107200,
8
- rejectOversizedBody: true,
9
- auditLogPath: "/var/log/ts-cloud/waf-audit.log",
10
- blockStatus: 403
11
- };
12
- var RULE_IDS = {
13
- bypassBase: 1e5,
14
- exclusionBase: 101000,
15
- rateLimitBase: 102000,
16
- customBase: 109000
17
- };
18
- function escapeSecLang(value) {
19
- return value.replace(/\\/g, "\\\\").replace(/"/g, "\\\"").replace(/[\r\n]+/g, " ");
20
- }
21
- function isSafePattern(pattern) {
22
- if (pattern.length > 1000)
23
- return false;
24
- if (/\([^)]*[+*]\)[+*]/.test(pattern))
25
- return false;
26
- if (/\[[^\]]*\][+*]\{/.test(pattern))
27
- return false;
28
- try {
29
- new RegExp(pattern);
30
- return true;
31
- } catch {
32
- return false;
33
- }
34
- }
35
- function rateLimitMarkers(rules, startId) {
36
- const lines = [];
37
- const unmapped = [];
38
- let id = startId;
39
- for (const rule of rules) {
40
- if (rule.enabled === false)
41
- continue;
42
- if (rule.key && (rule.key.source === "cookie" || rule.key.source === "header") && !rule.key.name) {
43
- unmapped.push({ ruleId: rule.id, reason: "The rule keys on a header or cookie but names none." });
44
- continue;
45
- }
46
- const pattern = rule.path ? globToRegex(rule.path) : ".*";
47
- if (!isSafePattern(pattern)) {
48
- unmapped.push({ ruleId: rule.id, reason: "The path pattern compiles to an unsafe regular expression." });
49
- continue;
50
- }
51
- const conditions = [`SecRule REQUEST_URI "@rx ${escapeSecLang(pattern)}"`];
52
- if (rule.methods?.length)
53
- conditions.push(` "chain,id:${id},phase:1,pass,nolog,setvar:'tx.ts_cloud_ratelimit=${escapeSecLang(rule.id)}'"`);
54
- else
55
- conditions.push(` "id:${id},phase:1,pass,nolog,setvar:'tx.ts_cloud_ratelimit=${escapeSecLang(rule.id)}'"`);
56
- lines.push(`# Marks requests governed by the ts-cloud rate limit "${escapeSecLang(rule.id)}".`);
57
- lines.push(conditions.join(" \\\n"));
58
- if (rule.methods?.length)
59
- lines.push(` SecRule REQUEST_METHOD "@within ${escapeSecLang(rule.methods.join(" ").toUpperCase())}" "t:none"`);
60
- lines.push("");
61
- id++;
62
- }
63
- return { lines, unmapped };
64
- }
65
- function globToRegex(glob) {
66
- const escaped = glob.replace(/[.+^${}()|[\]\\]/g, "\\$&").replace(/\*\*/g, "\x01").replace(/\*/g, "[^/]*").replace(/\u0001/g, ".*");
67
- return `^${escaped}$`;
68
- }
69
- function renderWafConfig(config = {}, rateLimits = []) {
70
- const mode = config.mode ?? DEFAULTS.mode;
71
- const warnings = [];
72
- const paranoia = config.paranoiaLevel ?? DEFAULTS.paranoiaLevel;
73
- const inbound = config.inboundThreshold ?? DEFAULTS.inboundThreshold;
74
- const outbound = config.outboundThreshold ?? DEFAULTS.outboundThreshold;
75
- const maxBody = config.maxBodyBytes ?? DEFAULTS.maxBodyBytes;
76
- const rejectOversized = config.rejectOversizedBody !== false;
77
- if (mode === "blocking" && paranoia >= 3)
78
- warnings.push(`Paranoia level ${paranoia} blocks legitimate traffic on most applications until it is tuned. Run it in detection mode first.`);
79
- if (mode === "blocking")
80
- warnings.push("zig-waf is pre-alpha. Blocking mode makes it a failure path for every request.");
81
- if (!rejectOversized)
82
- warnings.push("Oversized bodies are passed through uninspected, so padding a request bypasses every rule.");
83
- if (config.bypassPaths?.length)
84
- warnings.push(`${config.bypassPaths.length} path(s) bypass inspection entirely.`);
85
- const lines = [
86
- "# Managed by ts-cloud. Edits are overwritten on the next deploy.",
87
- `# Mode: ${mode}. Paranoia level: ${paranoia}.`,
88
- ""
89
- ];
90
- if (mode === "off") {
91
- lines.push("SecRuleEngine Off", "");
92
- return { config: `${lines.join(`
93
- `)}
94
- `, unmappedRateLimits: [], warnings, mode };
95
- }
96
- lines.push(`SecRuleEngine ${mode === "blocking" ? "On" : "DetectionOnly"}`, "SecRequestBodyAccess On", "SecResponseBodyAccess Off", `SecRequestBodyLimit ${maxBody}`, `SecRequestBodyNoFilesLimit ${Math.min(maxBody, 131072)}`, `SecRequestBodyLimitAction ${rejectOversized ? "Reject" : "ProcessPartial"}`, "SecRequestBodyInMemoryLimit 131072", `SecAuditEngine ${mode === "blocking" ? "RelevantOnly" : "On"}`, "SecAuditLogParts ABIJDEFHZ", `SecAuditLog ${escapeSecLang(config.auditLogPath ?? DEFAULTS.auditLogPath)}`, "SecAuditLogType Serial", `SecDefaultAction "phase:1,log,auditlog,${mode === "blocking" ? `deny,status:${config.blockStatus ?? DEFAULTS.blockStatus}` : "pass"}"`, "", "# CRS anomaly scoring setup.", `SecAction "id:900000,phase:1,pass,nolog,t:none,setvar:tx.paranoia_level=${paranoia}"`, `SecAction "id:900001,phase:1,pass,nolog,t:none,setvar:tx.inbound_anomaly_score_threshold=${inbound}"`, `SecAction "id:900002,phase:1,pass,nolog,t:none,setvar:tx.outbound_anomaly_score_threshold=${outbound}"`, 'SecAction "id:900003,phase:1,pass,nolog,t:none,setvar:tx.critical_anomaly_score=5,setvar:tx.error_anomaly_score=4,setvar:tx.warning_anomaly_score=3,setvar:tx.notice_anomaly_score=2"', 'SecAction "id:900004,phase:1,pass,nolog,t:none,setvar:tx.anomaly_score=0"', "");
97
- let bypassId = RULE_IDS.bypassBase;
98
- for (const path of config.bypassPaths ?? []) {
99
- const pattern = globToRegex(path);
100
- if (!isSafePattern(pattern)) {
101
- warnings.push(`Bypass path "${path}" was dropped: it compiles to an unsafe regular expression.`);
102
- continue;
103
- }
104
- lines.push(`# Inspection bypass for ${escapeSecLang(path)}. Every bypass is an unguarded route.`, `SecRule REQUEST_URI "@rx ${escapeSecLang(pattern)}" "id:${bypassId},phase:1,pass,nolog,ctl:ruleEngine=Off"`, "");
105
- bypassId++;
106
- }
107
- let exclusionId = RULE_IDS.exclusionBase;
108
- for (const exclusion of config.exclusions ?? []) {
109
- if (!Number.isInteger(exclusion.ruleId) || exclusion.ruleId <= 0) {
110
- warnings.push(`Exclusion with rule id "${exclusion.ruleId}" was dropped: the id is not a positive integer.`);
111
- continue;
112
- }
113
- lines.push(`# ${escapeSecLang(exclusion.reason)}`);
114
- if (exclusion.pathPattern) {
115
- if (!isSafePattern(exclusion.pathPattern)) {
116
- warnings.push(`Exclusion for rule ${exclusion.ruleId} was dropped: its path pattern is unsafe.`);
117
- continue;
118
- }
119
- lines.push(`SecRule REQUEST_URI "@rx ${escapeSecLang(exclusion.pathPattern)}" "id:${exclusionId},phase:1,pass,nolog,ctl:ruleRemoveById=${exclusion.ruleId}"`);
120
- exclusionId++;
121
- } else {
122
- lines.push(`SecRuleRemoveById ${exclusion.ruleId}`);
123
- }
124
- lines.push("");
125
- }
126
- const markers = rateLimitMarkers(rateLimits, RULE_IDS.rateLimitBase);
127
- if (markers.lines.length > 0) {
128
- lines.push("# Rate-limit route markers. SecLang has no counters, so the tag is set", "# here and the counting stays in the ts-cloud limiter.", ...markers.lines);
129
- }
130
- let customId = RULE_IDS.customBase;
131
- for (const rule of config.customRules ?? []) {
132
- lines.push(`# Operator-supplied rule ${customId}.`, rule.trim(), "");
133
- customId++;
134
- }
135
- if (mode === "blocking")
136
- lines.push("# Blocking decision: one rule, at the end, on the accumulated score.", `SecRule TX:ANOMALY_SCORE "@ge %{tx.inbound_anomaly_score_threshold}" "id:949110,phase:2,deny,status:${config.blockStatus ?? DEFAULTS.blockStatus},log,msg:'Inbound anomaly score exceeded (total: %{tx.anomaly_score})'"`, "");
137
- return { config: `${lines.join(`
138
- `)}
139
- `, unmappedRateLimits: markers.unmapped, warnings, mode };
140
- }
141
- function renderWafInstallScript(config = {}, rateLimits = [], options = {}) {
142
- const binary = options.binary ?? "/usr/local/bin/zig-waf";
143
- const configPath = options.configPath ?? "/etc/ts-cloud/waf.conf";
144
- const rendered = renderWafConfig(config, rateLimits);
145
- return `#!/usr/bin/env bash
146
- # Managed by ts-cloud. Installs the zig-waf ruleset.
147
- set -euo pipefail
148
-
149
- if [ ! -x "${binary}" ]; then
150
- echo "ts-cloud: ${binary} is not installed; skipping WAF configuration" >&2
151
- exit 0
152
- fi
153
-
154
- install -d -m 0755 "$(dirname "${configPath}")"
155
- install -d -m 0750 /var/log/ts-cloud
156
-
157
- cat > "${configPath}.new" <<'WAF_EOF'
158
- ${rendered.config}WAF_EOF
159
-
160
- # Compile the config before it goes live. A config that does not validate
161
- # would leave the engine with no rules while still reporting itself enabled.
162
- if ! "${binary}" validate "${configPath}.new"; then
163
- echo "ts-cloud: generated WAF config failed validation, keeping the previous one" >&2
164
- rm -f "${configPath}.new"
165
- exit 1
166
- fi
167
-
168
- if [ -f "${configPath}" ] && cmp -s "${configPath}.new" "${configPath}"; then
169
- rm -f "${configPath}.new"
170
- echo "ts-cloud: WAF config unchanged"
171
- exit 0
172
- fi
173
-
174
- mv "${configPath}.new" "${configPath}"
175
- echo "ts-cloud: WAF config installed (mode: ${rendered.mode})"
176
- `;
177
- }
178
- function wafEventTelemetry(events, scope) {
179
- return events.map((event) => ({
180
- projectId: scope.projectId,
181
- environmentId: scope.environmentId,
182
- resourceId: scope.resourceId,
183
- kind: "event",
184
- source: "zig-waf",
185
- name: event.action === "blocked" ? "waf.blocked" : "waf.matched",
186
- timestamp: event.timestamp,
187
- value: 1,
188
- host: event.host,
189
- pathTemplate: event.path,
190
- method: event.method,
191
- attributes: {
192
- ruleId: event.ruleId ?? null,
193
- anomalyScore: event.anomalyScore,
194
- action: event.action,
195
- messages: event.messages.slice(0, 5)
196
- }
197
- }));
198
- }
199
-
200
- export { escapeSecLang, isSafePattern, globToRegex, renderWafConfig, renderWafInstallScript, wafEventTelemetry };
@@ -1,13 +0,0 @@
1
- import {
2
- AWSClient,
3
- buildQueryParams,
4
- detectCredentialSource,
5
- resolveS3Endpoint
6
- } from "./chunk-zqtpg06c.js";
7
- import"./chunk-v0bahtg2.js";
8
- export {
9
- resolveS3Endpoint,
10
- detectCredentialSource,
11
- buildQueryParams,
12
- AWSClient
13
- };