|
UnENVerse 0.84.0
Local-first desktop secrets manager — TypeScript frontend
|
Functions | |
| function export | activeChunks (project:Project) |
| The chunks an export should actually emit. | |
| function | xv (value:string|undefined|null) |
| Resolve a ${ref} for an exporter, falling back to the literal on failure. | |
Variables | |
| import | type |
| import { st, Settings, quoteEnvValue, envName, primaryEnvName } from './state' | |
| export *from chunks | starters |
| export *from chunks | parsers |
| export *from chunks edit | modal |
| export *from chunks env | link |
| const | REFERENCE_DENY |
| Entry fields no ${…} may ever resolve to. | |
| const | version_history |
| const | projectIds |
| const | categories |
| function export activeChunks | ( | project:Project | ) |
The chunks an export should actually emit.
disabled is documented as "excluded from exports", and the later exporters (apache, haproxy, ansible, postgres) each check it inline. The four that people actually deploy — WireGuard, Compose, nginx, k8s — did not, so disabling a peer or a service in the UI greyed the card out and then shipped it anyway. Disabling a WireGuard peer and still writing it into wg0.conf means the tunnel keeps trusting a peer the user believes they removed.
| function xv | ( | value:string|undefined| | null | ) |
Resolve a ${ref} for an exporter, falling back to the literal on failure.
Six of the seven experimental exporters interpolated f.value raw, so a ${Provider/field} reached the generated config as literal text: a .pgpass line whose password is the string ${DB/password}, an Apache SSLCertificateFile pointing at nothing. That is invariant 5, and it is the same bug that was found in exportNginx during Phase 13 — found there by a golden fixture, missed here because these types had no fixture.
true selects the env-copy field, matching every other exporter that materialises a real config file. Canonical names for well-known field suffixes used in env var naming conventions. Reference alias → the vault-entry JSON field name it resolves to.
The values are the JSON names (api_key, not key) so this table and canonical_field in unv-cli/src/refs.rs are the same table written twice rather than two tables that happen to agree. Pinned from both sides by tests/fixtures/parity/field-aliases.json.
| import type |
| import { st, Settings, quoteEnvValue, envName, primaryEnvName } from './state' |
| export* from chunks starters |
| export* from chunks parsers |
| export* from chunks edit modal |
| export* from chunks env link |
| const REFERENCE_DENY |
Entry fields no ${…} may ever resolve to.
Metadata, not values: id is the row's UUID and the other three are lists that would stringify into something no config format wants. Checked before the lookup, so an extra_vars entry keyed id is unreachable too — ${X/id} has to mean one thing everywhere, and making it depend on the entry's own vars is the divergence this closes.
Twin of REFERENCE_DENY in unv-cli/src/refs.rs.
| const version_history |
| const projectIds |
| const categories |