@lunora/studio 1.0.0-alpha.7 → 1.0.0-alpha.71
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/LICENSE.md +6 -0
- package/dist/index.d.ts +762 -779
- package/dist/index.js +1 -41
- package/dist/mount.d.ts +10 -10
- package/dist/mount.js +1 -26
- package/dist/packem_chunks/ApiTab.js +1 -0
- package/dist/packem_chunks/AuditPanel.js +1 -0
- package/dist/packem_chunks/DeploymentHealthPanel.js +1 -0
- package/dist/packem_chunks/ExportImportPanel.js +3 -0
- package/dist/packem_chunks/FileBrowser.js +4 -0
- package/dist/packem_chunks/FunctionRunner.js +1 -0
- package/dist/packem_chunks/FunctionStatsPanel.js +1 -0
- package/dist/packem_chunks/HealthPanel.js +1 -0
- package/dist/packem_chunks/InsightsPanel.js +1 -0
- package/dist/packem_chunks/LogsPanel.js +1 -0
- package/dist/packem_chunks/MailPanel.js +2 -0
- package/dist/packem_chunks/MetricsPanel.js +1 -0
- package/dist/packem_chunks/MigrationsPanel.js +1 -0
- package/dist/packem_chunks/NotificationsPanel.js +1 -0
- package/dist/packem_chunks/PitrPanel.js +1 -0
- package/dist/packem_chunks/SchemaViewer.js +2 -0
- package/dist/packem_chunks/SecurityAdvisorPanel.js +1 -0
- package/dist/packem_chunks/SettingsPanel.js +1 -0
- package/dist/packem_chunks/SqlEditorPanel.js +4 -0
- package/dist/packem_chunks/TableEditor.js +1 -0
- package/dist/packem_chunks/agents-panel.js +1 -0
- package/dist/packem_chunks/analytics-panel.js +1 -0
- package/dist/packem_chunks/auth-audit-panel.js +1 -0
- package/dist/packem_chunks/auth-config-panel.js +1 -0
- package/dist/packem_chunks/auth-sessions-panel.js +1 -0
- package/dist/packem_chunks/containers-panel.js +1 -0
- package/dist/packem_chunks/dashboards-panel.js +1 -0
- package/dist/packem_chunks/fanout-panel.js +1 -0
- package/dist/packem_chunks/flags-panel.js +1 -0
- package/dist/packem_chunks/issues-panel.js +1 -0
- package/dist/packem_chunks/kv-browser.js +1 -0
- package/dist/packem_chunks/log-drains-panel.js +4 -0
- package/dist/packem_chunks/organizations-panel.js +1 -0
- package/dist/packem_chunks/payments-panel.js +1 -0
- package/dist/packem_chunks/permissions-panel.js +1 -0
- package/dist/packem_chunks/queues-panel.js +1 -0
- package/dist/packem_chunks/rls-panel.js +1 -0
- package/dist/packem_chunks/schedule-panel.js +1 -0
- package/dist/packem_chunks/sparkline.js +1 -0
- package/dist/packem_chunks/storage-rules-panel.js +1 -0
- package/dist/packem_chunks/subscriptions-panel.js +1 -0
- package/dist/packem_chunks/sync-client-panel.js +1 -0
- package/dist/packem_chunks/traces-panel.js +1 -0
- package/dist/packem_chunks/users-panel.js +1 -0
- package/dist/packem_chunks/vector-browser.js +1 -0
- package/dist/packem_chunks/workflows-panel.js +1 -0
- package/dist/packem_shared/ADMIN_FUNCTIONS-BYNSbBVE.js +1 -0
- package/dist/packem_shared/ApiDocsPanel-eJYZlylw.js +2 -0
- package/dist/packem_shared/ApiReferencePanel-C42v1jr6.js +1 -0
- package/dist/packem_shared/CommandPalette-CVIaY3j8.js +1 -0
- package/dist/packem_shared/ConfirmButton-CTL3f3kr.js +1 -0
- package/dist/packem_shared/ConnectionBadge-DOk0CQWo.js +1 -0
- package/dist/packem_shared/DEFAULT_AUTO_REFRESH_MS-BCC8_4BQ.js +1 -0
- package/dist/packem_shared/DEFAULT_INSIGHT_THRESHOLDS-B-hcFVoi.js +1 -0
- package/dist/packem_shared/DEFAULT_LOCALE-BZ4NojpD.js +1 -0
- package/dist/packem_shared/DataBrowser-B8J5lHjP.js +1 -0
- package/dist/packem_shared/DataFilters-Csb30F0C.js +1 -0
- package/dist/packem_shared/ErrorBoundary-DvzYskH7.js +1 -0
- package/dist/packem_shared/GlobalDataBrowser-RLJ6NvOs.js +1 -0
- package/dist/packem_shared/HomePanel-DL1HupAN.js +1 -0
- package/dist/packem_shared/OpenRpcReferencePanel-sGsIgYWj.js +1 -0
- package/dist/packem_shared/STUDIO_ROOT_CLASS-C6MccdVk.js +1 -0
- package/dist/packem_shared/ScheduledJobs-DUbo6epc.js +1 -0
- package/dist/packem_shared/ShardInput-BVn2iCU0.js +1 -0
- package/dist/packem_shared/Studio-BWBclm_C.js +1 -0
- package/dist/packem_shared/StudioApp-BFm73yVr.js +1 -0
- package/dist/packem_shared/StudioI18nProvider-CZ5h4nrV.js +1 -0
- package/dist/packem_shared/advisor-view-DaCX9Jy5.js +1 -0
- package/dist/packem_shared/aggregateMetrics-BNfajLa2.js +1 -0
- package/dist/packem_shared/alert-CVcOFuDR.js +1 -0
- package/dist/packem_shared/app.d-bRPJhby-.d.ts +254 -0
- package/dist/packem_shared/badge-BbuuAio7.js +1 -0
- package/dist/packem_shared/bar-chart-AryFCeoa.js +9 -0
- package/dist/packem_shared/browser-storage-xjTyMKY0.js +1 -0
- package/dist/packem_shared/button-BkCrNcAs.js +1 -0
- package/dist/packem_shared/card-CIDGUN6K.js +1 -0
- package/dist/packem_shared/cf-links-gbDy51nR.js +1 -0
- package/dist/packem_shared/checkbox-StT4Gob6.js +1 -0
- package/dist/packem_shared/data-grid-BMBKzMEJ.js +1 -0
- package/dist/packem_shared/data-view-params-C8T3bW1z.js +1 -0
- package/dist/packem_shared/dropdown-menu-C3RQ_HlW.js +2 -0
- package/dist/packem_shared/empty-state-Cg7t_8qu.js +1 -0
- package/dist/packem_shared/error-alert-B59DnrDI.js +1 -0
- package/dist/packem_shared/grid-features-uZCUj955.js +6 -0
- package/dist/packem_shared/home-panel-B-8BCffw.js +3 -0
- package/dist/packem_shared/input-JHu63lTv.js +1 -0
- package/dist/packem_shared/internal-AtZ4bTal.js +2 -0
- package/dist/packem_shared/label-6uP1obNF.js +1 -0
- package/dist/packem_shared/live-status-CGW2JHf_.js +1 -0
- package/dist/packem_shared/log-fields-CoL3hsIQ.js +1 -0
- package/dist/packem_shared/modal-shell-CUwwWC2o.js +1 -0
- package/dist/packem_shared/reference-view-KvhektwF.js +12 -0
- package/dist/packem_shared/result-chart-CwKhhKM0.js +1 -0
- package/dist/packem_shared/scroll-area-DTEq6Jec.js +2 -0
- package/dist/packem_shared/select-Bul-DeII.js +2 -0
- package/dist/packem_shared/shard-history-DMEW5VBE.js +1 -0
- package/dist/packem_shared/skeleton-C1wQ9M5t.js +1 -0
- package/dist/packem_shared/sparkline-DtcZoU48.js +1 -0
- package/dist/packem_shared/storage-tier-DznqOf-q.js +1 -0
- package/dist/packem_shared/studio-BHA7hnI3.js +2 -0
- package/dist/packem_shared/table-DdJBrClo.js +2 -0
- package/dist/packem_shared/table-list-sidebar-CMCcNALK.js +1 -0
- package/dist/packem_shared/textarea-Bu2-jKAs.js +1 -0
- package/dist/packem_shared/trace-handoff-Dw7mwjxu.js +1 -0
- package/dist/packem_shared/use-admin-query-Di3fLE8H.js +1 -0
- package/dist/packem_shared/use-async-submit-H68GHPz8.js +1 -0
- package/dist/packem_shared/useDebounced-Ihdiid_k.js +1 -0
- package/dist/packem_shared/utils-bhneXptQ.js +1 -0
- package/dist/packem_shared/virtual-rect-1o1veP7R.js +1 -0
- package/dist/standalone/chunk-2F7G7IWQ.js +1 -0
- package/dist/standalone/chunk-2OUPA2WJ.js +1 -0
- package/dist/standalone/chunk-2PJNAWB3.js +1 -0
- package/dist/standalone/chunk-2Y36BVVM.js +4 -0
- package/dist/standalone/chunk-34UVAASH.js +1 -0
- package/dist/standalone/chunk-35II7U25.js +11 -0
- package/dist/standalone/chunk-3FUFEZ65.js +1 -0
- package/dist/standalone/chunk-3QRTYSSX.js +1 -0
- package/dist/standalone/chunk-3RTTXLMU.js +1 -0
- package/dist/standalone/chunk-3XIESWL4.js +1 -0
- package/dist/standalone/chunk-4CGALXS3.js +19 -0
- package/dist/standalone/chunk-4UOFSGUS.js +1 -0
- package/dist/standalone/chunk-4WLYA3XE.js +1 -0
- package/dist/standalone/chunk-54MMVNPT.js +1 -0
- package/dist/standalone/chunk-5L2MD6F6.js +1 -0
- package/dist/standalone/chunk-5OWIOACV.js +13 -0
- package/dist/standalone/chunk-5RF4QDDA.js +6 -0
- package/dist/standalone/chunk-5U2THBI7.js +1 -0
- package/dist/standalone/chunk-5Y3QLNWX.js +1 -0
- package/dist/standalone/chunk-65OTWFS3.js +1 -0
- package/dist/standalone/chunk-6DWCIIHE.js +1 -0
- package/dist/standalone/chunk-6ST5ECQA.js +1 -0
- package/dist/standalone/chunk-7J5N6DGQ.js +1 -0
- package/dist/standalone/chunk-7LQWFOEU.js +1 -0
- package/dist/standalone/chunk-7QIFDWQV.js +1 -0
- package/dist/standalone/chunk-7RXOPYR5.js +1 -0
- package/dist/standalone/chunk-7T7UOTYK.js +1 -0
- package/dist/standalone/chunk-7YEFOSPH.js +1 -0
- package/dist/standalone/chunk-AVAC26HJ.js +1 -0
- package/dist/standalone/chunk-B43FTQJ7.js +1 -0
- package/dist/standalone/chunk-BEH5N5ZA.js +1 -0
- package/dist/standalone/chunk-BGBLQ563.js +1 -0
- package/dist/standalone/chunk-BNUJ7QMG.js +3 -0
- package/dist/standalone/chunk-C43X4M5U.js +1 -0
- package/dist/standalone/chunk-CFPZYHPY.js +2 -0
- package/dist/standalone/chunk-D7XXWV4E.js +1 -0
- package/dist/standalone/chunk-DVOBKIUX.js +1 -0
- package/dist/standalone/chunk-EKRN4ZQM.js +1 -0
- package/dist/standalone/chunk-ESVP44Y3.js +1 -0
- package/dist/standalone/chunk-EVN46TVV.js +1 -0
- package/dist/standalone/chunk-EXFBIISG.js +2 -0
- package/dist/standalone/chunk-F5QWLENA.js +1 -0
- package/dist/standalone/chunk-F6GOKFMU.js +3 -0
- package/dist/standalone/chunk-FGTK44LR.js +1 -0
- package/dist/standalone/chunk-FXCBF4XT.js +1 -0
- package/dist/standalone/chunk-GMR677FL.js +1 -0
- package/dist/standalone/chunk-GRL5MG3Z.js +1 -0
- package/dist/standalone/chunk-GSPTEMYN.js +1 -0
- package/dist/standalone/chunk-GXZAXNZI.js +1 -0
- package/dist/standalone/chunk-H7NIIBHH.js +1 -0
- package/dist/standalone/chunk-HP2UCWND.js +1 -0
- package/dist/standalone/chunk-HPFLBYRI.js +1 -0
- package/dist/standalone/chunk-IC4L6G56.js +1 -0
- package/dist/standalone/chunk-IDNNI63H.js +1 -0
- package/dist/standalone/chunk-ILNELDFC.js +1 -0
- package/dist/standalone/chunk-IVFHIQOT.js +1 -0
- package/dist/standalone/chunk-JN2Y24PY.js +1 -0
- package/dist/standalone/chunk-KDOC2DP5.js +1 -0
- package/dist/standalone/chunk-KUVMORDQ.js +1 -0
- package/dist/standalone/chunk-KYF2E5CJ.js +1 -0
- package/dist/standalone/chunk-L7N7F3DA.js +1 -0
- package/dist/standalone/chunk-LE56LPNH.js +13 -0
- package/dist/standalone/chunk-LEDWUPXM.js +1 -0
- package/dist/standalone/chunk-LFKCLLPT.js +1 -0
- package/dist/standalone/chunk-LFXFP4IF.js +1 -0
- package/dist/standalone/chunk-LJDP7NRB.js +1 -0
- package/dist/standalone/chunk-LLXFYRGQ.js +1 -0
- package/dist/standalone/chunk-M536Y2KX.js +1 -0
- package/dist/standalone/chunk-MIQTKZAR.js +1 -0
- package/dist/standalone/chunk-OHKRN65U.js +1 -0
- package/dist/standalone/chunk-P24JBHEZ.js +4 -0
- package/dist/standalone/chunk-PF7V3G2Z.js +62 -0
- package/dist/standalone/chunk-PWWHP76O.js +1 -0
- package/dist/standalone/chunk-QBWRC5YX.js +1 -0
- package/dist/standalone/chunk-QGKAJTQQ.js +1 -0
- package/dist/standalone/chunk-QLJJ5YYZ.js +1 -0
- package/dist/standalone/chunk-QVEHPYA5.js +1 -0
- package/dist/standalone/chunk-QWGT25SE.js +1 -0
- package/dist/standalone/chunk-QWJ3NPE3.js +1 -0
- package/dist/standalone/chunk-RAA2RGG6.js +1 -0
- package/dist/standalone/chunk-RBU52M5T.js +1 -0
- package/dist/standalone/chunk-SA3MDZC3.js +1 -0
- package/dist/standalone/chunk-SD4BERSA.js +1 -0
- package/dist/standalone/chunk-SFDOII3B.js +1 -0
- package/dist/standalone/chunk-SKHEGARW.js +1 -0
- package/dist/standalone/chunk-SMIESS7P.js +1 -0
- package/dist/standalone/chunk-T2JIUFOD.js +4 -0
- package/dist/standalone/chunk-T6VMSOBB.js +1 -0
- package/dist/standalone/chunk-THIXMMZD.js +1 -0
- package/dist/standalone/chunk-TJ2WZ5OP.js +1 -0
- package/dist/standalone/chunk-TLHJRWNK.js +1 -0
- package/dist/standalone/chunk-UIS34ZPB.js +8 -0
- package/dist/standalone/chunk-UNUU7CJJ.js +1 -0
- package/dist/standalone/chunk-UZERI5YC.js +1 -0
- package/dist/standalone/chunk-V53KNYRN.js +1 -0
- package/dist/standalone/chunk-VPAXCQ2Y.js +4 -0
- package/dist/standalone/chunk-X2FQ6B5V.js +1 -0
- package/dist/standalone/chunk-XBDKZZ67.js +1 -0
- package/dist/standalone/chunk-XEDU5FO4.js +1 -0
- package/dist/standalone/chunk-XQBTNJUQ.js +1 -0
- package/dist/standalone/chunk-XQCVZAGU.js +1 -0
- package/dist/standalone/chunk-XQGANNLS.js +1 -0
- package/dist/standalone/chunk-XSD4Y6SQ.js +1 -0
- package/dist/standalone/chunk-XXQUMVWH.js +1 -0
- package/dist/standalone/chunk-YD5NF6UT.js +1 -0
- package/dist/standalone/chunk-YI3WYUXK.js +1 -0
- package/dist/standalone/chunk-ZJGP6EKR.js +1 -0
- package/dist/standalone/chunk-ZNNAGR6N.js +1 -0
- package/dist/standalone/studio.js +9 -356
- package/dist/styles.css +2 -2
- package/package.json +17 -15
- package/dist/packem_shared/ADMIN_FUNCTIONS-DmBqMZ-z.js +0 -45
- package/dist/packem_shared/ApiDocsPanel-C5-yJ1p7.js +0 -842
- package/dist/packem_shared/ApiReferencePanel-1vubqG5s.js +0 -229
- package/dist/packem_shared/ApiTab-W3no0KOj.js +0 -251
- package/dist/packem_shared/AuditPanel-Bq4o_IqT.js +0 -212
- package/dist/packem_shared/CommandPalette-BtgkBzZI.js +0 -373
- package/dist/packem_shared/ConfirmButton-C2eVi2Qv.js +0 -59
- package/dist/packem_shared/ConnectionBadge-B2DDM2Tn.js +0 -111
- package/dist/packem_shared/DEFAULT_AUTO_REFRESH_MS-Vxwaxx51.js +0 -50
- package/dist/packem_shared/DEFAULT_INSIGHT_THRESHOLDS-DjF0h-gA.js +0 -89
- package/dist/packem_shared/DEFAULT_LOCALE-CiX4W7Kr.js +0 -27
- package/dist/packem_shared/DataBrowser-CtBe1So9.js +0 -4542
- package/dist/packem_shared/DataFilters-FNquMaiu.js +0 -249
- package/dist/packem_shared/ErrorBoundary-BzAApI7J.js +0 -66
- package/dist/packem_shared/ExportImportPanel-dxY56TDF.js +0 -193
- package/dist/packem_shared/FileBrowser-Dhy4zES8.js +0 -2932
- package/dist/packem_shared/FunctionRunner--fQJRPAD.js +0 -343
- package/dist/packem_shared/FunctionStatsPanel-BjRUA_G3.js +0 -432
- package/dist/packem_shared/GlobalDataBrowser-BTEmGrph.js +0 -318
- package/dist/packem_shared/HealthPanel-PxclMWmA.js +0 -640
- package/dist/packem_shared/HomePanel-Cw16stjq.js +0 -1273
- package/dist/packem_shared/InsightsPanel-CWS_C-xW.js +0 -423
- package/dist/packem_shared/LogsPanel-CTW8CFcM.js +0 -839
- package/dist/packem_shared/MailPanel-BwkvfIHF.js +0 -447
- package/dist/packem_shared/MetricsPanel-BLuOhZQ4.js +0 -1625
- package/dist/packem_shared/MigrationsPanel-DT3lnwHF.js +0 -246
- package/dist/packem_shared/OpenRpcReferencePanel-vbcYbv3V.js +0 -191
- package/dist/packem_shared/PitrPanel-CdErL7EJ.js +0 -252
- package/dist/packem_shared/STUDIO_ROOT_CLASS-D12gX2dV.js +0 -3
- package/dist/packem_shared/ScheduledJobs-CabfKbyM.js +0 -159
- package/dist/packem_shared/SchemaViewer-LJDcmNIO.js +0 -2512
- package/dist/packem_shared/SecurityAdvisorPanel-C_ETsPih.js +0 -79
- package/dist/packem_shared/SettingsPanel-C0uLRf5P.js +0 -176
- package/dist/packem_shared/ShardInput-gx_DZXXn.js +0 -107
- package/dist/packem_shared/SqlEditorPanel-CguV7otm.js +0 -13
- package/dist/packem_shared/Studio-BmSGSIuY.js +0 -33
- package/dist/packem_shared/StudioApp-D4azxYBu.js +0 -657
- package/dist/packem_shared/StudioI18nProvider-B-tDCZIi.js +0 -48
- package/dist/packem_shared/TableEditor-ChfUOZec.js +0 -371
- package/dist/packem_shared/advisor-view-CGcfMiPq.js +0 -159
- package/dist/packem_shared/aggregateMetrics-D4nUHEKU.js +0 -108
- package/dist/packem_shared/app.d-CCmwDEVs.d.ts +0 -300
- package/dist/packem_shared/badge-B2PKA1-5.js +0 -49
- package/dist/packem_shared/bar-chart-CzJAgqkp.js +0 -3245
- package/dist/packem_shared/button-BhsN2uZH.js +0 -49
- package/dist/packem_shared/card-DURq3ElK.js +0 -175
- package/dist/packem_shared/cf-links-2cktDedA.js +0 -8
- package/dist/packem_shared/checkbox-UNkzAxl-.js +0 -63
- package/dist/packem_shared/data-grid-B5CaV3wS.js +0 -183
- package/dist/packem_shared/dropdown-menu-WY4B_eJO.js +0 -280
- package/dist/packem_shared/empty-state-DY_oe0k6.js +0 -98
- package/dist/packem_shared/grid-features-CzUfqgsM.js +0 -840
- package/dist/packem_shared/input-XH4r1Pt1.js +0 -53
- package/dist/packem_shared/internal-rXJEAhXS.js +0 -68
- package/dist/packem_shared/label-D8ykjn5J.js +0 -46
- package/dist/packem_shared/live-status-FZ0psC1z.js +0 -44
- package/dist/packem_shared/reference-view-B4E49Lip.js +0 -2180
- package/dist/packem_shared/shard-history-DyebH1R5.js +0 -38
- package/dist/packem_shared/sparkline-10dG-_f0.js +0 -93
- package/dist/packem_shared/sql-editor-panel-BFRpzj6r.js +0 -2562
- package/dist/packem_shared/storage-tier-CL98eOvn.js +0 -85
- package/dist/packem_shared/studio-H9fuQgSj.js +0 -10303
- package/dist/packem_shared/table-_RzNvy3R.js +0 -246
- package/dist/packem_shared/table-list-sidebar-Bg7uzbvC.js +0 -832
- package/dist/packem_shared/textarea-D3gaCU_-.js +0 -46
- package/dist/packem_shared/use-live-admin-Dq6g3daN.js +0 -73
- package/dist/packem_shared/use-live-shard-seed-Cuk3dnH0.js +0 -76
- package/dist/packem_shared/useDebounced-Dxncpg6z.js +0 -32
- package/dist/packem_shared/utils-B05Dmz_H.js +0 -8
- package/dist/packem_shared/virtual-rect-CVMUskSm.js +0 -10
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { useLunora } from '@lunora/react';
|
|
2
|
-
import { useState, useEffect } from 'react';
|
|
3
|
-
import { useT } from './DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
4
|
-
import { ADMIN_FUNCTIONS } from './ADMIN_FUNCTIONS-DmBqMZ-z.js';
|
|
5
|
-
import { f as fireAndForget, c as callOptions, e as errorMessage, a as adminRef } from './internal-rXJEAhXS.js';
|
|
6
|
-
import { A as AdvisorView } from './advisor-view-CGcfMiPq.js';
|
|
7
|
-
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
8
|
-
|
|
9
|
-
const GET_SECURITY_AUDIT = adminRef(ADMIN_FUNCTIONS.getSecurityAudit);
|
|
10
|
-
const findingTitle = (t, finding) => ({
|
|
11
|
-
"admin-token-weak": t("Weak admin token"),
|
|
12
|
-
"auth-secret-weak": t("Weak auth secret"),
|
|
13
|
-
"cookies-insecure": t("Session cookies are not Secure"),
|
|
14
|
-
"cors-wildcard-credentials": t("Wildcard CORS with credentials"),
|
|
15
|
-
"csrf-disabled": t("CSRF/origin guard is off"),
|
|
16
|
-
"dev-args-unredacted": t("Request log keeps un-redacted args"),
|
|
17
|
-
"security-headers-disabled": t("Security headers are off"),
|
|
18
|
-
"ws-gate-open": t("Live admin subscriptions are ungated")
|
|
19
|
-
})[finding.kind];
|
|
20
|
-
const findingEntity = (finding) => ({
|
|
21
|
-
"admin-token-weak": "LUNORA_ADMIN_TOKEN",
|
|
22
|
-
"auth-secret-weak": "AUTH_SECRET",
|
|
23
|
-
"cookies-insecure": "BETTER_AUTH_URL",
|
|
24
|
-
"cors-wildcard-credentials": "LUNORA_ALLOWED_ORIGINS",
|
|
25
|
-
"csrf-disabled": "LUNORA_SECURITY_CSRF",
|
|
26
|
-
"dev-args-unredacted": "request log",
|
|
27
|
-
"security-headers-disabled": "LUNORA_SECURITY_HEADERS",
|
|
28
|
-
"ws-gate-open": "LUNORA_WS_BEARER"
|
|
29
|
-
})[finding.kind];
|
|
30
|
-
const findingDetail = (t, finding) => ({
|
|
31
|
-
"admin-token-weak": t("Your admin token is {length} characters — use at least {min} for a brute-force-resistant secret.", {
|
|
32
|
-
length: finding.detail?.["length"],
|
|
33
|
-
min: finding.detail?.["min"]
|
|
34
|
-
}),
|
|
35
|
-
"auth-secret-weak": t("Your auth secret is {length} characters — use at least {min} (e.g. `openssl rand -hex 32`) to sign sessions safely.", {
|
|
36
|
-
length: finding.detail?.["length"],
|
|
37
|
-
min: finding.detail?.["min"]
|
|
38
|
-
}),
|
|
39
|
-
"cookies-insecure": t("BETTER_AUTH_URL is a plaintext http:// origin, so session cookies cannot be Secure and ride in cleartext. Serve auth over https:// in production."),
|
|
40
|
-
"cors-wildcard-credentials": t("LUNORA_ALLOWED_ORIGINS includes a wildcard while credentials are allowed — browsers reject this and it defeats the allowlist. Name explicit origins instead of *."),
|
|
41
|
-
"csrf-disabled": t("LUNORA_SECURITY_CSRF is off, so cross-origin state-changing cookie requests are not blocked. Re-enable it in production to keep mutations un-forgeable."),
|
|
42
|
-
"dev-args-unredacted": t("This worker reports a development environment, so the request log stores raw args and identity. Confirm it isn't a mislabeled production deploy."),
|
|
43
|
-
"security-headers-disabled": t("LUNORA_SECURITY_HEADERS is off, so HSTS, CSP, nosniff, and frame-options are not applied. Re-enable the baseline headers in production."),
|
|
44
|
-
"ws-gate-open": t("LUNORA_WS_BEARER is unset, so the WebSocket upgrade gate is open: live admin subscriptions need no credential. Set it to gate them like the HTTP admin RPCs.")
|
|
45
|
-
})[finding.kind];
|
|
46
|
-
const SecurityAdvisorPanel = () => {
|
|
47
|
-
const client = useLunora();
|
|
48
|
-
const t = useT();
|
|
49
|
-
const [findings, setFindings] = useState(null);
|
|
50
|
-
const [error, setError] = useState(null);
|
|
51
|
-
const refresh = async () => {
|
|
52
|
-
try {
|
|
53
|
-
const result = await client.query(GET_SECURITY_AUDIT, {}, callOptions(""));
|
|
54
|
-
setFindings(Array.isArray(result.findings) ? result.findings : []);
|
|
55
|
-
setError(null);
|
|
56
|
-
} catch (error_) {
|
|
57
|
-
setError(errorMessage(error_));
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
useEffect(() => {
|
|
61
|
-
fireAndForget(refresh());
|
|
62
|
-
}, [refresh]);
|
|
63
|
-
const rows = findings === null ? null : findings.map((finding) => {
|
|
64
|
-
return {
|
|
65
|
-
description: findingDetail(t, finding),
|
|
66
|
-
entity: findingEntity(finding),
|
|
67
|
-
issueType: findingTitle(t, finding),
|
|
68
|
-
key: finding.kind,
|
|
69
|
-
level: finding.level
|
|
70
|
-
};
|
|
71
|
-
});
|
|
72
|
-
return /* @__PURE__ */ jsxDEV(AdvisorView, {
|
|
73
|
-
error,
|
|
74
|
-
rows,
|
|
75
|
-
testId: "lunora-security-advisor"
|
|
76
|
-
}, void 0, false);
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
export { SecurityAdvisorPanel as default };
|
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
import { useLunora } from '@lunora/react';
|
|
2
|
-
import { useState, useCallback, useEffect, useMemo } from 'react';
|
|
3
|
-
import { B as Badge } from './badge-B2PKA1-5.js';
|
|
4
|
-
import { C as Card, a as CardContent } from './card-DURq3ElK.js';
|
|
5
|
-
import { T as Table, a as TableHeader, b as TableRow, c as TableHead, d as TableBody, e as TableCell } from './table-_RzNvy3R.js';
|
|
6
|
-
import { useT } from './DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
7
|
-
import { ADMIN_FUNCTIONS } from './ADMIN_FUNCTIONS-DmBqMZ-z.js';
|
|
8
|
-
import { a as CLOUDFLARE_WORKERS_URL } from './cf-links-2cktDedA.js';
|
|
9
|
-
import { c as callOptions, e as errorMessage, f as fireAndForget, a as adminRef } from './internal-rXJEAhXS.js';
|
|
10
|
-
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
11
|
-
|
|
12
|
-
const GET_SETTINGS = adminRef(ADMIN_FUNCTIONS.getSettings);
|
|
13
|
-
const KIND_VARIANT = {
|
|
14
|
-
binding: "outline",
|
|
15
|
-
secret: "destructive",
|
|
16
|
-
var: "secondary"
|
|
17
|
-
};
|
|
18
|
-
const SettingsPanel = ({
|
|
19
|
-
initialShardKey
|
|
20
|
-
}) => {
|
|
21
|
-
const client = useLunora();
|
|
22
|
-
const t = useT();
|
|
23
|
-
const [result, setResult] = useState(null);
|
|
24
|
-
const [error, setError] = useState(null);
|
|
25
|
-
const [loading, setLoading] = useState(false);
|
|
26
|
-
const refresh = useCallback(async () => {
|
|
27
|
-
setLoading(true);
|
|
28
|
-
setError(null);
|
|
29
|
-
try {
|
|
30
|
-
const settings = await client.query(GET_SETTINGS, {}, callOptions(initialShardKey ?? ""));
|
|
31
|
-
setResult(settings);
|
|
32
|
-
} catch (error_) {
|
|
33
|
-
setResult(null);
|
|
34
|
-
setError(errorMessage(error_));
|
|
35
|
-
} finally {
|
|
36
|
-
setLoading(false);
|
|
37
|
-
}
|
|
38
|
-
}, [client, initialShardKey]);
|
|
39
|
-
useEffect(() => {
|
|
40
|
-
fireAndForget(refresh());
|
|
41
|
-
}, [refresh]);
|
|
42
|
-
const deployRows = useMemo(() => {
|
|
43
|
-
const deploy = result?.deploy;
|
|
44
|
-
if (deploy === void 0) {
|
|
45
|
-
return [];
|
|
46
|
-
}
|
|
47
|
-
const rows = [];
|
|
48
|
-
if (deploy.workerUrl !== void 0) {
|
|
49
|
-
rows.push({
|
|
50
|
-
label: t("URL"),
|
|
51
|
-
value: deploy.workerUrl
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
if (deploy.environment !== void 0) {
|
|
55
|
-
rows.push({
|
|
56
|
-
label: t("Environment"),
|
|
57
|
-
value: deploy.environment
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
if (deploy.deploymentId !== void 0) {
|
|
61
|
-
rows.push({
|
|
62
|
-
label: t("Deployment"),
|
|
63
|
-
value: deploy.deploymentId
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
if (deploy.versionTag !== void 0) {
|
|
67
|
-
rows.push({
|
|
68
|
-
label: t("Version"),
|
|
69
|
-
value: deploy.versionTag
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
return rows;
|
|
73
|
-
}, [result, t]);
|
|
74
|
-
const settings_0 = result?.settings ?? [];
|
|
75
|
-
return /* @__PURE__ */ jsxDEV("div", {
|
|
76
|
-
className: "flex flex-col gap-4",
|
|
77
|
-
"data-testid": "lunora-settings",
|
|
78
|
-
children: [/* @__PURE__ */ jsxDEV("div", {
|
|
79
|
-
className: "flex flex-wrap items-center gap-3",
|
|
80
|
-
children: /* @__PURE__ */ jsxDEV("a", {
|
|
81
|
-
className: "text-sm text-primary underline-offset-4 hover:underline",
|
|
82
|
-
"data-testid": "set-cf-link",
|
|
83
|
-
href: CLOUDFLARE_WORKERS_URL,
|
|
84
|
-
rel: "noreferrer",
|
|
85
|
-
target: "_blank",
|
|
86
|
-
children: t("Open in Cloudflare")
|
|
87
|
-
}, void 0, false)
|
|
88
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV("p", {
|
|
89
|
-
className: "text-sm text-muted-foreground",
|
|
90
|
-
"data-testid": "set-readonly-note",
|
|
91
|
-
children: t("View-only — values are masked. Edit vars, secrets, and bindings in wrangler or the Cloudflare dashboard.")
|
|
92
|
-
}, void 0, false), error !== null && /* @__PURE__ */ jsxDEV("p", {
|
|
93
|
-
className: "text-sm text-destructive",
|
|
94
|
-
"data-testid": "set-error",
|
|
95
|
-
role: "alert",
|
|
96
|
-
children: error
|
|
97
|
-
}, void 0, false), deployRows.length > 0 && /* @__PURE__ */ jsxDEV(Card, {
|
|
98
|
-
className: "py-0",
|
|
99
|
-
"data-testid": "set-deploy",
|
|
100
|
-
children: [/* @__PURE__ */ jsxDEV("header", {
|
|
101
|
-
className: "border-b border-border px-4 py-3",
|
|
102
|
-
children: /* @__PURE__ */ jsxDEV("span", {
|
|
103
|
-
className: "font-mono text-[11px] tracking-wide text-muted-foreground uppercase",
|
|
104
|
-
children: t("Deployment")
|
|
105
|
-
}, void 0, false)
|
|
106
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV(CardContent, {
|
|
107
|
-
className: "py-3",
|
|
108
|
-
children: /* @__PURE__ */ jsxDEV("dl", {
|
|
109
|
-
className: "grid grid-cols-[8rem_minmax(0,1fr)] gap-x-4 gap-y-1 text-sm",
|
|
110
|
-
children: deployRows.map((row) => /* @__PURE__ */ jsxDEV("div", {
|
|
111
|
-
className: "contents",
|
|
112
|
-
"data-testid": "set-deploy-row",
|
|
113
|
-
children: [/* @__PURE__ */ jsxDEV("dt", {
|
|
114
|
-
className: "text-muted-foreground",
|
|
115
|
-
children: row.label
|
|
116
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV("dd", {
|
|
117
|
-
className: "truncate font-mono text-xs",
|
|
118
|
-
title: row.value,
|
|
119
|
-
children: row.value
|
|
120
|
-
}, void 0, false)]
|
|
121
|
-
}, row.label, true))
|
|
122
|
-
}, void 0, false)
|
|
123
|
-
}, void 0, false)]
|
|
124
|
-
}, void 0, true), /* @__PURE__ */ jsxDEV(Card, {
|
|
125
|
-
className: "py-0",
|
|
126
|
-
children: [/* @__PURE__ */ jsxDEV("header", {
|
|
127
|
-
className: "border-b border-border px-4 py-3",
|
|
128
|
-
children: /* @__PURE__ */ jsxDEV("span", {
|
|
129
|
-
className: "font-mono text-[11px] tracking-wide text-muted-foreground uppercase",
|
|
130
|
-
children: t("Environment & bindings")
|
|
131
|
-
}, void 0, false)
|
|
132
|
-
}, void 0, false), error === null && !loading && settings_0.length === 0 && /* @__PURE__ */ jsxDEV("p", {
|
|
133
|
-
className: "px-4 py-8 text-center text-sm text-muted-foreground",
|
|
134
|
-
"data-testid": "set-empty",
|
|
135
|
-
children: t("No environment variables or bindings.")
|
|
136
|
-
}, void 0, false), settings_0.length > 0 && /* @__PURE__ */ jsxDEV(CardContent, {
|
|
137
|
-
className: "px-0 py-0",
|
|
138
|
-
children: /* @__PURE__ */ jsxDEV(Table, {
|
|
139
|
-
"data-testid": "set-table",
|
|
140
|
-
children: [/* @__PURE__ */ jsxDEV(TableHeader, {
|
|
141
|
-
children: /* @__PURE__ */ jsxDEV(TableRow, {
|
|
142
|
-
children: [/* @__PURE__ */ jsxDEV(TableHead, {
|
|
143
|
-
children: t("name")
|
|
144
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
|
|
145
|
-
children: t("kind")
|
|
146
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
|
|
147
|
-
children: t("value")
|
|
148
|
-
}, void 0, false)]
|
|
149
|
-
}, void 0, true)
|
|
150
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV(TableBody, {
|
|
151
|
-
children: settings_0.map((entry) => /* @__PURE__ */ jsxDEV(TableRow, {
|
|
152
|
-
"data-testid": "set-row",
|
|
153
|
-
children: [/* @__PURE__ */ jsxDEV(TableCell, {
|
|
154
|
-
className: "font-mono text-xs font-medium",
|
|
155
|
-
children: entry.name
|
|
156
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV(TableCell, {
|
|
157
|
-
children: /* @__PURE__ */ jsxDEV(Badge, {
|
|
158
|
-
variant: KIND_VARIANT[entry.kind],
|
|
159
|
-
children: entry.bindingType ?? entry.kind
|
|
160
|
-
}, void 0, false)
|
|
161
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV(TableCell, {
|
|
162
|
-
className: "max-w-[28ch] truncate font-mono text-xs text-muted-foreground",
|
|
163
|
-
children: entry.value ?? /* @__PURE__ */ jsxDEV("span", {
|
|
164
|
-
className: "text-muted-foreground",
|
|
165
|
-
children: "—"
|
|
166
|
-
}, void 0, false)
|
|
167
|
-
}, void 0, false)]
|
|
168
|
-
}, entry.name, true))
|
|
169
|
-
}, void 0, false)]
|
|
170
|
-
}, void 0, true)
|
|
171
|
-
}, void 0, false)]
|
|
172
|
-
}, void 0, true)]
|
|
173
|
-
}, void 0, true);
|
|
174
|
-
};
|
|
175
|
-
|
|
176
|
-
export { SettingsPanel };
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { c } from 'react/compiler-runtime';
|
|
2
|
-
import { useId, useState } from 'react';
|
|
3
|
-
import { useT } from './DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
4
|
-
import { l as loadRecentShards } from './shard-history-DyebH1R5.js';
|
|
5
|
-
import { I as Input } from './input-XH4r1Pt1.js';
|
|
6
|
-
import { jsxDEV, Fragment } from 'react/jsx-dev-runtime';
|
|
7
|
-
|
|
8
|
-
const ShardInput = (t0) => {
|
|
9
|
-
const $ = c(21);
|
|
10
|
-
const {
|
|
11
|
-
id,
|
|
12
|
-
onChange,
|
|
13
|
-
testId,
|
|
14
|
-
value
|
|
15
|
-
} = t0;
|
|
16
|
-
const t = useT();
|
|
17
|
-
const listId = useId();
|
|
18
|
-
const [recents] = useState(_temp);
|
|
19
|
-
let t1;
|
|
20
|
-
if ($[0] !== onChange) {
|
|
21
|
-
t1 = (event) => {
|
|
22
|
-
onChange(event.target.value);
|
|
23
|
-
};
|
|
24
|
-
$[0] = onChange;
|
|
25
|
-
$[1] = t1;
|
|
26
|
-
} else {
|
|
27
|
-
t1 = $[1];
|
|
28
|
-
}
|
|
29
|
-
const onInputChange = t1;
|
|
30
|
-
let t2;
|
|
31
|
-
if ($[2] !== t) {
|
|
32
|
-
t2 = t("Shard key");
|
|
33
|
-
$[2] = t;
|
|
34
|
-
$[3] = t2;
|
|
35
|
-
} else {
|
|
36
|
-
t2 = $[3];
|
|
37
|
-
}
|
|
38
|
-
const t3 = recents.length > 0 ? listId : void 0;
|
|
39
|
-
let t4;
|
|
40
|
-
if ($[4] !== t) {
|
|
41
|
-
t4 = t("shard key (optional)");
|
|
42
|
-
$[4] = t;
|
|
43
|
-
$[5] = t4;
|
|
44
|
-
} else {
|
|
45
|
-
t4 = $[5];
|
|
46
|
-
}
|
|
47
|
-
let t5;
|
|
48
|
-
if ($[6] !== id || $[7] !== onInputChange || $[8] !== t2 || $[9] !== t3 || $[10] !== t4 || $[11] !== testId || $[12] !== value) {
|
|
49
|
-
t5 = /* @__PURE__ */ jsxDEV(Input, {
|
|
50
|
-
"aria-label": t2,
|
|
51
|
-
className: "h-8 w-48",
|
|
52
|
-
"data-testid": testId,
|
|
53
|
-
id,
|
|
54
|
-
list: t3,
|
|
55
|
-
onChange: onInputChange,
|
|
56
|
-
placeholder: t4,
|
|
57
|
-
value
|
|
58
|
-
}, void 0, false);
|
|
59
|
-
$[6] = id;
|
|
60
|
-
$[7] = onInputChange;
|
|
61
|
-
$[8] = t2;
|
|
62
|
-
$[9] = t3;
|
|
63
|
-
$[10] = t4;
|
|
64
|
-
$[11] = testId;
|
|
65
|
-
$[12] = value;
|
|
66
|
-
$[13] = t5;
|
|
67
|
-
} else {
|
|
68
|
-
t5 = $[13];
|
|
69
|
-
}
|
|
70
|
-
let t6;
|
|
71
|
-
if ($[14] !== listId || $[15] !== recents || $[16] !== testId) {
|
|
72
|
-
t6 = recents.length > 0 && /* @__PURE__ */ jsxDEV("datalist", {
|
|
73
|
-
"data-testid": `${testId}-recents`,
|
|
74
|
-
id: listId,
|
|
75
|
-
children: recents.map(_temp2)
|
|
76
|
-
}, void 0, false);
|
|
77
|
-
$[14] = listId;
|
|
78
|
-
$[15] = recents;
|
|
79
|
-
$[16] = testId;
|
|
80
|
-
$[17] = t6;
|
|
81
|
-
} else {
|
|
82
|
-
t6 = $[17];
|
|
83
|
-
}
|
|
84
|
-
let t7;
|
|
85
|
-
if ($[18] !== t5 || $[19] !== t6) {
|
|
86
|
-
t7 = /* @__PURE__ */ jsxDEV(Fragment, {
|
|
87
|
-
children: [t5, t6]
|
|
88
|
-
}, void 0, true);
|
|
89
|
-
$[18] = t5;
|
|
90
|
-
$[19] = t6;
|
|
91
|
-
$[20] = t7;
|
|
92
|
-
} else {
|
|
93
|
-
t7 = $[20];
|
|
94
|
-
}
|
|
95
|
-
return t7;
|
|
96
|
-
};
|
|
97
|
-
function _temp() {
|
|
98
|
-
return loadRecentShards();
|
|
99
|
-
}
|
|
100
|
-
function _temp2(shard) {
|
|
101
|
-
return /* @__PURE__ */ jsxDEV("option", {
|
|
102
|
-
"aria-label": shard,
|
|
103
|
-
value: shard
|
|
104
|
-
}, shard, false);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
export { ShardInput };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import 'react/compiler-runtime';
|
|
2
|
-
import '@lunora/react';
|
|
3
|
-
import 'react';
|
|
4
|
-
export { S as SqlEditorPanel } from './sql-editor-panel-BFRpzj6r.js';
|
|
5
|
-
import './ShardInput-gx_DZXXn.js';
|
|
6
|
-
import './table-_RzNvy3R.js';
|
|
7
|
-
import './DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
8
|
-
import './ADMIN_FUNCTIONS-DmBqMZ-z.js';
|
|
9
|
-
import './internal-rXJEAhXS.js';
|
|
10
|
-
import './shard-history-DyebH1R5.js';
|
|
11
|
-
import './data-grid-B5CaV3wS.js';
|
|
12
|
-
import './grid-features-CzUfqgsM.js';
|
|
13
|
-
import 'react/jsx-dev-runtime';
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import 'react/compiler-runtime';
|
|
2
|
-
import '@tanstack/react-router';
|
|
3
|
-
import 'react';
|
|
4
|
-
export { S as Studio } from './studio-H9fuQgSj.js';
|
|
5
|
-
import './ErrorBoundary-BzAApI7J.js';
|
|
6
|
-
import './badge-B2PKA1-5.js';
|
|
7
|
-
import './input-XH4r1Pt1.js';
|
|
8
|
-
import './reference-view-B4E49Lip.js';
|
|
9
|
-
import './InsightsPanel-CWS_C-xW.js';
|
|
10
|
-
import './SecurityAdvisorPanel-C_ETsPih.js';
|
|
11
|
-
import './ApiTab-W3no0KOj.js';
|
|
12
|
-
import './TableEditor-ChfUOZec.js';
|
|
13
|
-
import './ExportImportPanel-dxY56TDF.js';
|
|
14
|
-
import './MigrationsPanel-DT3lnwHF.js';
|
|
15
|
-
import './PitrPanel-CdErL7EJ.js';
|
|
16
|
-
import './FunctionRunner--fQJRPAD.js';
|
|
17
|
-
import './FunctionStatsPanel-BjRUA_G3.js';
|
|
18
|
-
import './HomePanel-Cw16stjq.js';
|
|
19
|
-
import './AuditPanel-Bq4o_IqT.js';
|
|
20
|
-
import './LogsPanel-CTW8CFcM.js';
|
|
21
|
-
import './MailPanel-BwkvfIHF.js';
|
|
22
|
-
import './HealthPanel-PxclMWmA.js';
|
|
23
|
-
import './MetricsPanel-BLuOhZQ4.js';
|
|
24
|
-
import './SchemaViewer-LJDcmNIO.js';
|
|
25
|
-
import './SettingsPanel-C0uLRf5P.js';
|
|
26
|
-
import './sql-editor-panel-BFRpzj6r.js';
|
|
27
|
-
import './FileBrowser-Dhy4zES8.js';
|
|
28
|
-
import './DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
29
|
-
import './StudioI18nProvider-B-tDCZIi.js';
|
|
30
|
-
import './internal-rXJEAhXS.js';
|
|
31
|
-
import './utils-B05Dmz_H.js';
|
|
32
|
-
import './CommandPalette-BtgkBzZI.js';
|
|
33
|
-
import 'react/jsx-dev-runtime';
|