Skip to content

Support tls deferring to vault for list of keys or trusted certificates, support filesystem vault #1576

Closed

Description

@jfallows

For the tls client or server.

Possible config options, perhaps there is a better one.

options
  keys: *
  trust: *

Explicitly list aliases in vault implementation like filesystem, default to all in key store.


Revisiting (reopened). Closed previously with "the vault should take responsibility for mapping from alias to internal representation as needed" — still true, and not being reversed here. The refinement is what happens when no alias list is given at all: VaultHandler.initKeys/initTrust/initSigners should accept an empty/absent ref list as "resolve everything this vault instance exposes," rather than requiring the tls binding to itemize aliases (canonical or otherwise) in every case.

This came up wiring a kind: client composite generator (binding-mcp-kafka) that dynamically assembles a tls binding at runtime — code generating a binding config has no natural way to invent or discover alias names, canonical or vault-native, so "give me everything this vault is configured to expose" is the only signal it can reasonably produce. Static hand-authored zilla.yaml configs keep the option to itemize specific aliases (unchanged), but codegen paths need the wildcard.

This also motivates per-vault-instance isolation: vault-filesystem's FileSystemOptionsConfig's keys/trust/signers (each a FileSystemStoreConfig — store, type, password) point at a whole PKCS#12/JKS file today with no allow-list. Adding an optional entries: [...] there lets two separate vault instances point at the same underlying keys.p12 and each expose a different subset — the "isolation" then lives in vault configuration (which store + which entries), not in a per-binding alias list. A TLS binding pointed at one of those instances with no keys:/trust: list then just gets "everything that instance exposes," which for that instance is already the intended subset.

Scope:

  • VaultHandler.initKeys/initTrust/initSigners: treat an empty/absent ref list as "resolve all entries this vault instance exposes," not an error/empty result
  • vault-filesystem: implement the wildcard resolution (enumerate all entries in the configured keystore when no refs given)
  • vault-filesystem: optional entries: [...] allow-list on FileSystemStoreConfig (keys/trust/signers) to scope a vault instance to a subset of a shared underlying store
  • No change to the explicit-alias-list path — still supported and still the way canonical-alias-to-internal-representation mapping (per the earlier decision) works when a caller does specify aliases

Activity

  1. self-assigned this
    on Sep 29, 2025
  2. jfallows commented on Jan 14, 2026

    @jfallows
    ContributorAuthor

    No longer required.

    The vault should take responsibility for mapping from alias to internal representation as needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions