Skip to content

fix(web): Copy CRL URL on local http hosts - #138

Merged
BRAVO68WEB merged 1 commit into
mainfrom
feat/fix-copy-crl
Sep 20, 2026
Merged

BRAVO68WEB merged 1 commit into
mainfrom
feat/fix-copy-crl

Conversation

@BRAVO68WEB

Copy link
Copy Markdown
Contributor

Summary

Copy CRL URL used `navigator.clipboard.writeText`, which is blocked on `http://app.lvh.me:8001\` (not a secure context) and failed with no toast. The copy hook now falls back to `document.execCommand("copy")` and the Certificates button toasts on failure.

Program / phase

  • N/A

No-piggyback checklist

  • Does not make product A depend on product B via spawn, re-export, or rename-only API
  • Shared code is a library (kernel/domain/ui), not a second entrypoint of another product
  • If this creates or provisions an organization, it matches the channel matrix (§1.1a)
  • Self-host web session never gains a new org-create path
  • New enterprise API/UI modules are registered for the enterprise package path (not only silently inside core forever) — note follow-up phase if interim
  • OSS deploy changes do not call into `deploy-cli` / enterprise deploy sources

Tests

  • Mock / unit (if API)
  • E2E or pack smoke (if behavior/deploy)
  • N/A docs-only

Clipboard fallback; other copy buttons (API keys, env values) get the same fix.

Risk / rollout

None. Client-only.

navigator.clipboard.writeText is blocked outside a secure context, so
Copy CRL URL failed silently on local lvh.me. Fall back to execCommand
and toast when copy still fails.
@b68-pilot b68-pilot Bot added the size/M label Sep 20, 2026
@BRAVO68WEB
BRAVO68WEB merged commit 44f43b3 into main Sep 20, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant