UnENVerse 0.84.0
Local-first desktop secrets manager — TypeScript frontend
Loading...
Searching...
No Matches
chunk-ops.ts File Reference

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 Documentation

◆ activeChunks()

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.

◆ xv()

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.

Variable Documentation

◆ type

import type
Initial value:
{
} from './types'
as unknown as VaultEntry
Definition settings-panel.ts:1060
export interface SecretChunk
A named section within a structured project config.
Definition types.ts:819
export type ChunkFieldType
Sub-type of a field in a structured config chunk.
Definition types.ts:743
export interface ChunkField
A single field within a structured config chunk (WireGuard section, Docker service,...
Definition types.ts:758
export type ProjectType
High-level type of a project — drives the special config view.
Definition types.ts:837
export interface Project
Definition types.ts:727
export interface ProjectBinding
A hierarchical category node (UI label: "Category").
Definition types.ts:720

◆ import

import { st, Settings, quoteEnvValue, envName, primaryEnvName } from './state'

◆ starters

export* from chunks starters

◆ parsers

export* from chunks parsers

◆ modal

export* from chunks edit modal

◆ link

export* from chunks env link

◆ REFERENCE_DENY

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.

◆ version_history

const version_history

◆ projectIds

const projectIds

◆ categories

const categories