Zum Inhalt springen
Einträge
164
Quellen
3
Zuletzt aktualisiert

Folge jdx, um die Release Notes in deinen Feed zu holen.

Fnox von jdx

fnox 1.28.0: Nicht-interaktiver Modus für exec

fnox 1.28.0 ergänzt die globale Option --non-interactive bzw. FNOX_NON_INTERACTIVE, die Eingabeaufforderungen und browserbasierte Authentifizierung deaktiviert, sodass CI- und Skriptläufe bei erforderlicher Interaktion sofort mit einem Fehler abbrechen.

A small feature release that adds a global --non-interactive mode for fnox exec and other resolve paths, so CI and scripted runs can rely on cached credentials and fail fast instead of hanging on auth prompts or device flows.

Added

Global --non-interactive / FNOX_NON_INTERACTIVE (#565) -- @jdx

A new top-level flag (and matching env var) disables prompts and browser-based auth flows for the entire invocation. It is propagated through the daemon protocol, so daemon-backed resolution behaves the same way as direct resolution -- including when fnox auto-starts daemon serve to handle the request.

fnox --non-interactive exec -- ./run-tests.sh
# or
FNOX_NON_INTERACTIVE=1 fnox exec -- ./run-tests.sh

In non-interactive mode:

  • should_prompt_auth no longer prompts, regardless of TTY or prompt_auth config.
  • The github-oauth lease backend still happily reuses cached and refreshable tokens, but fails immediately with a clear interactive auth required for GitHub OAuth device authorization error instead of printing a user code and polling. The error hint points you at running fnox lease create <lease-name> from an interactive terminal first.

This is intended for CI jobs, cron tasks, and other scripted runs where a hung prompt is worse than a fast failure.

Fixed …

Originalquelle(öffnet in neuem Tab)Problem melden

Fnox von jdx

fnox 1.27.1: dotenv-Export und Windows-Build-Fix

fnox 1.27.1 lässt fnox export --format env echte dotenv-Dateien erzeugen, ergänzt ein separates shell-Format für sourcebare Ausgabe, passt fnox import entsprechend an und behebt den durch den Daemon aus v1.27.0 verursachten Windows-Build-Fehler.

A small patch release that makes fnox export actually produce dotenv files, adds a separate shell format for sourceable output, and unbreaks the Windows build introduced by the v1.27.0 daemon.

Fixed

fnox export --format env now emits real dotenv (#554) -- @jdx

The env format was documented as .env/KEY=value but was actually emitting shell export KEY='value' lines, which broke consumers that expect bare assignments. It now produces proper dotenv output:

$ fnox export --format env
NORMAL_SECRET=normal-value
SPECIAL_SECRET="secret$value`tick`"
QUOTED_SECRET="quoted \"value\" with \\ backslash"

Simple values are left unquoted; values containing whitespace or special characters are double-quoted with \n, \r, \t, ", and \ escaped. $ and backticks are deliberately left literal so the file round-trips through dotenv parsers.

fnox import was updated to match: double-quoted .env values now have \n, \t, \", and \\ unescaped on the way in, so an export/import round-trip preserves multi-line and quoted secrets.

Windows builds fixed (#555) -- @jdx …

Originalquelle(öffnet in neuem Tab)Problem melden

Fnox von jdx

fnox 1.27.0: Daemon, Secret-Scanning und Config-Defaults

fnox 1.27.0 führt einen optionalen Daemon pro Benutzer für gecachte Secret-Auflösung, den Befehl fnox scan zum Finden von Klartext-Secrets und ${VAR}-Interpolation für Secret-Defaults ein.

This release adds three pieces aimed at making fnox faster, safer, and easier to compose: an opt-in per-user daemon for cached secret resolution, a new fnox scan command for finding plaintext secrets before they leak, and ${VAR} interpolation for secret defaults. It also includes a small documentation pass and CI housekeeping.

Added

Per-user secret resolver daemon (#550) -- @jdx

fnox now has an opt-in daemon that keeps resolved secrets in memory for your user session and serves repeated read-oriented resolutions over a same-user Unix socket. It is intended for configs backed by remote providers such as 1Password, Bitwarden, AWS Secrets Manager, or Vault where repeated fnox get, fnox exec, shell hooks, TUI refreshes, or MCP calls can otherwise feel slow.

Enable it with a top-level config block:

[daemon]
enabled = true
idle_timeout = "8h"

New lifecycle commands are available under fnox daemon:

fnox daemon start
fnox daemon status
fnox daemon clear
fnox daemon stop

Implementation details worth knowing:

  • Daemon-backed resolution is used by read-oriented commands such as get, exec, export, hook-env, list --values, check, tui, mcp, and ci-redact.
  • Mutation and admin flows still resolve directly, including set, remove, sync, reencrypt, edit, provider, and lease create. …

Originalquelle(öffnet in neuem Tab)Problem melden

Fnox von jdx

fnox 1.26.0: Provider-basierte age-Identitäten und Vault-Befehle

fnox 1.26.0 erlaubt dem age-Provider, seine Identität über einen anderen Provider (z. B. Schlüsselbund) zu beziehen, lässt Vault-Provider und Lease-Backend Tokens per Shell-Befehl holen, bringt ein echtes put_secret_value für GCP Secret Manager und zwei Korrekturen für fnox export und hook-env in Shell-Pipelines.

A feature release centered on more flexible authentication: the age provider can now bootstrap its identity from another provider (for example, the OS keychain), and the Vault provider and lease backend can obtain tokens from a user-defined shell command. Also includes a real put_secret_value for GCP Secret Manager and two fixes that make fnox export and hook-env better citizens in shell pipelines.

Added

Provider-backed age identities (#515) -- @k35o

The age provider now accepts an identity reference that resolves through any other configured provider. This makes the keychain-bootstrap pattern from v1.25.1 actually work end-to-end:

[providers]
keychain = { type = "keychain", service = "fnox" }
age      = { type = "age", recipients = ["age1..."], identity = { provider = "keychain", value = "age-key" } }

Implementation details worth knowing:

  • Identities are resolved lazily during decryption, so fnox set and other encryption-only paths don't require access to the backing identity provider.
  • Resolution order is FNOX_AGE_KEY -> identity provider ref -> key_file -> deprecated CLI setting -> default ~/.config/fnox/age.txt.
  • Cycle detection catches both direct self-references (age -> age) and mutual cycles between two age providers, producing a clear Circular dependency detected in provider configuration: age-a -> age-b -> age-a error. …

Originalquelle(öffnet in neuem Tab)Problem melden

Hk von jdx

Hk 1.48.0: Vererbung von Gruppeneinstellungen

Hk 1.48.0 lässt Steps Einstellungen wie dir, prefix oder shell von ihrer Group erben, fügt das Builtin aqua_update_checksum hinzu, erweitert das RuboCop-Dateimatching und behebt einen pklr-Fehler bei Inline-Gruppenkonfigurationen.

Groups can now define defaults that child steps inherit, plus a new aqua checksum builtin, expanded RuboCop file matching, and a pklr fix for inline group configs.

Added

  • Inherit step settings from groups (@RobertDeRose) #982. A Group can now set dir, prefix, workspace_indicator, shell, stage, and exclude, and child steps inherit any field they don't define themselves. Override semantics are simple: a child value fully replaces the group value, never merges.

    local frontend = new Group {
        dir = "packages/frontend"
        prefix = "mise x --"
        steps {
            ["prettier"] = (Builtins.prettier) { batch = true }
            ["eslint"] = (Builtins.eslint) {
                dir = "different/path"   // overrides the group dir
                batch = true             // still inherits prefix
            }
        }
    }
    
  • aqua_update_checksum builtin (@hituzi-no-sippo) #977. A fix-only step that runs aqua update-checksum --prune whenever your aqua config or checksum files change, keeping aqua-checksums.json up to date and pruning unused entries.

Changed …

Originalquelle(öffnet in neuem Tab)Problem melden

Hk von jdx

Hk 1.47.0: pklr als Standard-Backend

Hk 1.47.0 nutzt den eingebauten pklr-Interpreter standardmäßig, sodass die pkl-CLI nicht mehr nötig ist, und bringt Korrekturen für Stash, Merge-Base und Windows-Batching sowie neue Builtin-Verbesserungen wie ryl_markdown.

hk now ships with the built-in pklr evaluator as the default config backend — no pkl CLI required — plus three stash, merge-base, and Windows batching fixes that close out reported regressions, and a handful of builtin improvements from @hituzi-no-sippo.

Added

  • pklr is now the default pkl backend (@jdx) #976. hk.pkl is evaluated with the embedded pklr interpreter out of the box, so the Apple pkl CLI is no longer required to use hk. The CLI backend is still available via HK_PKL_BACKEND=pkl; unrecognized values now warn and fall through to pklr. The config cache also switched from mtime comparisons to hashing file contents, so edits to imported .pkl files reliably invalidate the cache.

    # Default (no setup required)
    hk check
    
    # Opt back into the pkl CLI
    HK_PKL_BACKEND=pkl hk check
    
  • ryl builtin gains fix and check_list_files (@hituzi-no-sippo) #967. Bumps the underlying ryl to v0.13.0 and wires in the new commands. The yamllint config dependency is dropped.

  • ryl_markdown builtin (@hituzi-no-sippo) #968. Lints YAML embedded inside Markdown documents using ryl's markdown support. …

Originalquelle(öffnet in neuem Tab)Problem melden

Hk von jdx

Hk 1.46.0: --staged-Flag und globale Installation

Hk 1.46.0 bringt das Flag --staged, um Hooks nur auf gestagte Dateien auszuführen, lässt hk install bei globaler Konfiguration überspringen und behebt drei Stash- und Merge-Fehler.

A feature-and-fix release: hooks can now target staged files without touching your worktree, hk install cooperates with global installs, and three separate stash/merge bugs that could clobber fixer output or staged deletions are fixed.

Added

  • --staged flag for hk run, check, fix, and hook subcommands (@jdx) #950. Runs hooks against the staged file set while leaving unstaged and untracked changes alone — no stash, no worktree mutation. It conflicts with --all and --stash, and forces StashMethod::None even when the hook config opts into stashing. Fixes #940.

    hk run pre-commit --staged
    hk fix --staged
    
  • hk install skips when hk is configured globally (@jdx) #934. If any hook.hk-* entry exists in ~/.gitconfig, hk install is a no-op and additionally cleans up stale per-repo hooks left behind from a prior install, so the global install is the single source of truth and hk doesn't fire twice per event. Pass --force-local to install per-repo hooks anyway. This means postinstall workarounds like git config --get-regexp hook\.hk- || hk install can now be replaced with a plain hk install. Closes #933. …

Originalquelle(öffnet in neuem Tab)Problem melden

Fnox von jdx

fnox 1.25.1: Keychain-Zuverlässigkeit und Abhängigkeits-Updates

fnox 1.25.1 behebt unter macOS einen Deadlock und gestapelte Sicherheitsdialoge beim Keychain-Provider, indem Zugriffe über einen Blocking-Pool laufen und Einträge seriell aufgelöst werden, und stellt den KeePass-Provider auf keepass 0.12 um.

A patch release focused on the OS keychain provider: a deadlock and dialog-storm fix on macOS, plus a clean migration to keyring-core v1 and keepass 0.12.

Fixed

Keychain provider no longer deadlocks the runtime or stacks dialogs (#495) -- @jdx

Resolving several keychain-backed secrets at once on macOS could hang fnox indefinitely (see discussion #489). The default batch path fans out 10 concurrent reads, which surfaced up to 10 overlapping "Always Allow / Allow / Deny" Security dialogs and pinned every tokio worker thread waiting for the user — deadlocking the runtime.

Two changes fix this:

  • All keyring-core calls (set_password, get_password, delete_credential) now run via tokio::task::spawn_blocking, so a blocked Security dialog never pins a runtime worker.
  • The keychain provider overrides get_secrets_batch to resolve entries serially, so dialogs appear one at a time and Ctrl-C stays responsive.

fnox set against the keychain and test_connection are routed through the blocking pool too.

KeePass provider works with keepass 0.12 (#494) -- @jdx

The 0.10 → 0.12 bump made Group.groups, Group.entries, Database.root, and friends pub(crate), with access now going through Database::root(), GroupRef/GroupMut accessors, and add_group / add_entry. The provider has been rewritten to match: …

Originalquelle(öffnet in neuem Tab)Problem melden

Fnox von jdx

fnox 1.25.0: FOKS-Provider und saubere Pipe-Behandlung

fnox 1.25.0 fügt einen neuen foks-Provider für den Ende-zu-Ende-verschlüsselten FOKS-KV-Store hinzu und behebt einen Panic, wenn fnox get in einen Prozess gepiped wird, der die Pipe vorzeitig schließt.

Adds a new foks provider for the FOKS end-to-end encrypted KV store, and fixes a long-standing panic when piping fnox get into a process that closes the pipe early.

Added

foks provider for the Federated Open Key Service (#486) -- @maxtaco

A new provider that stores secrets in a FOKS end-to-end encrypted KV store via the foks CLI. Supports both personal and team-scoped configurations:

[providers]
foks = { type = "foks", prefix = "fnox/" }                # personal
ops  = { type = "foks", prefix = "fnox/", team = "ops" }  # team-shared

[secrets]
DATABASE_URL = { provider = "ops", value = "DATABASE_URL" }

Configurable fields:

  • prefix — path namespace within the FOKS KV store
  • team — FOKS team to scope to (passed through as --team)
  • home — custom FOKS home dir (passed as --home); falls back to FNOX_FOKS_HOME / FOKS_HOME
  • host, bot_token — non-interactive auth for CI

When bot_token and host are configured (or FOKS_BOT_TOKEN / FOKS_HOST are set in env), the provider transparently runs foks bot use --host <host> on the first auth failure and retries the operation, so CI just needs:

env:
  FOKS_BOT_TOKEN: ${{ secrets.FOKS_BOT_TOKEN }}
steps:
  - run: brew install foks
  - run: foks ctl start
  - run: fnox exec -- ./deploy.sh
``` …

Originalquelle(öffnet in neuem Tab)Problem melden

Fnox von jdx

fnox 1.24.1: Sicherere Shell-Aktivierung und Tabellenformat

fnox 1.24.1 bewahrt bei fnox set und fnox import das Tabellenformat von [secrets.NAME] und verhindert in bash/zsh die Shell-Expansion von Secret-Werten, indem diese nun POSIX-konform in Single-Quotes ausgegeben werden.

A small bug-fix release that hardens shell activation against expansion of secret values and stops fnox set / fnox import from rewriting [secrets.NAME] tables as inline tables.

Fixed

Preserve table-style secret formatting on edits (#467) -- @jdx

fnox set and fnox import previously rewrote any existing [secrets."NAME"] table as a single-line inline table ("NAME" = { provider = ..., value = ... }), discarding the multi-line layout. Both commands now detect the existing style and update fields in-place, keeping the [secrets."NAME"] header, comments, and key order intact:

[secrets."SEKRIT_PASSWORD"]
provider = "age"
value = "..."          # updated in place
if_missing = "error"   # preserved

Prevent shell expansion of secret values in bash/zsh activation (#473) -- @jdx

The bash and zsh hook-env output previously wrapped values in double quotes with only \ and " escaped, so a secret containing $$, `cmd`, or ${...} would be expanded by the shell when the activation script was eval-ed — leaking e.g. the shell PID into the variable (see discussion #471). fnox now POSIX-quotes values via shlex, producing safe single-quoted output:

export DOLLAR_SECRET='$$test'
export BACKTICK_SECRET='a`whoami`b'
``` …

Originalquelle(öffnet in neuem Tab)Problem melden

Fnox von jdx

fnox 1.24.0: GitHub-OAuth-Lease-Backend

fnox 1.24.0 ergänzt ein github-oauth-Lease-Backend, das über den OAuth-Device-Flow kurzlebige, benutzerbezogene GitHub-Tokens erzeugt, ohne dass ein privater App-Schlüssel verteilt werden muss.

A focused release that adds a new github-oauth lease backend for minting short-lived, user-attributed GitHub tokens via OAuth device flow — without distributing an app private key.

Added

github-oauth lease backend (#464) -- @jdx

A new lease type that creates GitHub App user access tokens using the OAuth device flow and injects them as GITHUB_TOKEN (or a custom env var) for the duration of fnox exec. It is the recommended option for local development and user-attributed gh / GitHub API usage where you want a short-lived token tied to the signed-in user instead of a long-lived PAT in fnox.toml.

[leases.github]
type = "github-oauth"
client_id = "Iv1.yourgithubappclientid"
scope = "repo read:org workflow"
duration = "8h"
fnox exec -- gh pr list

On first run, fnox prints a verification URL and user code, optionally opens the URL in your browser, and polls GitHub until you approve the device prompt. Subsequent runs reuse the cached token until it expires.

Highlights of the backend:

  • Only the GitHub App client ID is required — no app private key and no client secret, so the lease config can be checked in and shared across a team. (The existing github-app backend remains the right choice for installation tokens in CI.) …

Originalquelle(öffnet in neuem Tab)Problem melden

Hk von jdx

Hk 1.45.0: Buildifier-Builtins und besseres Auto-Batching

Hk 1.45.0 fügt die Builtins buildifier_format und buildifier_lint für Bazel-Projekte hinzu und verhindert, dass das Auto-Batching Jobs aufteilt, deren Befehl {{files}} nicht referenziert.

A small feature release: Bazel users get first-class buildifier built-ins, and hk's auto-batching is now smart enough to leave steps alone when their commands don't actually reference the file list.

Added

  • buildifier_format and buildifier_lint built-ins (@plx) #896. Two new built-ins for Bazel projects, modeled on buf_format / buf_lint. They cover BUILD, BUILD.bazel, WORKSPACE, WORKSPACE.bazel, MODULE.bazel, *.bzl, *.star, and *.sky files, and ship with the usual project-indicator metadata so they're auto-suggested for Bazel repos.

    import "package://github.com/jdx/hk/releases/download/v1.45.0/hk@1.45.0#/Builtins.pkl"
    
    hooks {
      ["pre-commit"] {
        steps = new {
          ["buildifier-format"] = Builtins.buildifier_format
          ["buildifier-lint"] = Builtins.buildifier_lint
        }
      }
    }
    

Fixed

  • Auto-batching no longer splits jobs whose command doesn't reference {{files}} (@jdx) #901. Previously, hk decided whether to split a step into multiple ARG_MAX-safe batches purely from the size of the file-list expansion. On Windows — where ARG_MAX falls back to 128KB — a step like:

    local vscodeCommitHint = new Step {
      exclusive = true
      check = "echo If you see this message in a pop-up, the pre-commit steps failed."
    }
    ``` …
    

Originalquelle(öffnet in neuem Tab)Problem melden

Fnox von jdx

fnox 1.23.1: Alpine-Binaries und fnox-core-Crate

fnox 1.23.1 liefert statisch gelinkte musl-Binaries für Linux (x86_64 und aarch64) für Alpine, ergänzt Favicons und ein Web-Manifest für die Dokumentationsseite und lagert den Bibliotheksteil in die Crate fnox-core aus.

A small release that ships native musl binaries for Alpine users and splits the library half of fnox into its own fnox-core crate for downstream Rust consumers.

Added

musl Linux binaries (#452) -- @jdx

Releases now include x86_64-unknown-linux-musl and aarch64-unknown-linux-musl artifacts alongside the existing gnu builds. The previous glibc-linked binaries failed on Alpine with cannot execute: required file not found (missing libudev.so.1 and glibc-only symbols like __res_init) — even with gcompat installed. The musl builds are statically linked and run cleanly on alpine:3 and friends:

docker run --rm -v "$PWD:/work" alpine:3 sh -c \
  'cd /work && tar xzf fnox-*-x86_64-unknown-linux-musl.tar.gz && ./fnox --version'

Note: the fido2 provider is not compiled into musl builds (its ctap-hid-fido2 dependency doesn't build under musl). Alpine users needing hardware-key-style flows should use age, pass, or a cloud provider. The keychain provider compiles but, as on any headless Linux, requires a session bus at runtime.

Docs site favicons and web manifest (#448) -- @jdx

Adds a simplified vault-door favicon.svg plus favicon.ico, 16/32 PNGs, apple-touch-icon.png, Android Chrome icons, and a site.webmanifest for installable-PWA metadata.

Changed

fnox-core library crate (#458) -- @jdx …

Originalquelle(öffnet in neuem Tab)Problem melden

Hk von jdx

Hk 1.44.3: fail_on_fix und lesbare CI-Logs

Hk 1.44.3 sorgt dafür, dass fail_on_fix=true die Fixer-Ausgabe nicht mehr über das eigene git add staged, und macht die Text-Fortschrittsausgabe in CI-Logs wieder lesbar.

A small patch release fixing two notable rough edges: fail_on_fix=true no longer silently re-stages the fixer's output over your git add, and hk's text-mode progress output is finally readable in CI logs.

Fixed

  • fail_on_fix=true no longer overwrites your staged changes with the fix (@jdx) #892. Previously, when a hook had fail_on_fix = true, the step's auto-staging would silently merge the fixer's output into the index over your explicit git add choices. After the failed commit, the fix was no longer visible as an unstaged change for review, and a re-commit would silently succeed with the fix baked in — defeating the entire point of fail_on_fix. should_stage is now forced off for RunType::Fix runs when fail_on_fix is set, so the fixer's output stays in the worktree as an unstaged change for you to inspect, and the commit keeps failing until you accept it. Fixes #888.

  • Text-mode progress output is usable in CI again (@jdx) #890. hk's output in GitHub Actions and other piped-stderr environments was a mess: raw [9A[80D[0J cursor-control escapes leaked into the log, every status change was duplicated, failure stderr was suppressed, and a step matching hundreds of files dumped ~4KB of paths into every progress line. This release fixes the lot: …

Originalquelle(öffnet in neuem Tab)Problem melden

Fnox von jdx

fnox 1.23.0: Zeilenauswahl für mehrzeilige Secrets

fnox 1.23.0 führt ein 1-indiziertes line-Feld ein, mit dem sich aus einem mehrzeiligen Secret eine einzelne Zeile auswählen lässt, etwa bei pass-Einträgen mit Passwort in Zeile 1 und Metadaten in den folgenden Zeilen.

A small, focused release that adds a line selector for picking a single line out of a multiline secret — most useful for the pass convention of storing the password on line 1 and metadata (username, URL, etc.) on subsequent lines.

Added

Line selector for multiline secrets (#446) -- @fgrosse

Secrets now accept a 1-indexed line field that returns just the Nth line of the resolved value. This matches the pass show <entry> --clip=N convention and lets you expose multiple fields from a single pass entry as separate secrets:

[providers.pass]
type = "password-store"
prefix = "fnox/"

[secrets]
# `pass show fnox/database` returns:
#   <password>
#   <username>
DB_PASSWORD = { provider = "pass", value = "database", line = 1 }
DB_USERNAME = { provider = "pass", value = "database", line = 2 }

Details worth knowing:

  • line is mutually exclusive with json_path; using both on the same secret is an error.
  • Line splitting uses str::lines(), so \r\n endings are handled cleanly and a single trailing newline doesn't shift indices.
  • line = 0 and out-of-range values produce clear error messages (e.g. `line = 5` is out of range; secret has 2 line(s)).
  • Post-processing applies uniformly to provider, default, and env-var sources.
  • fnox sync and fnox reencrypt cache the raw provider value, not the post-processed view, so the selector stays a read-only projection. …

Originalquelle(öffnet in neuem Tab)Problem melden

Fnox von jdx

fnox 1.22.0: Bibliotheks-API und Fix für fnox set

fnox 1.22.0 führt eine Top-Level-Fnox-Bibliotheks-API zum Einbetten in Rust-Anwendungen ein und behebt, dass fnox set verschlüsselte Secrets stillschweigend in Klartext umwandeln konnte.

v1.22.0 introduces a top-level library API for embedding fnox in Rust applications, and fixes a sharp edge in fnox set that could turn an encrypted secret into plaintext.

Added

Top-level Fnox library API (#442) -- @bglusman

Downstream Rust consumers can now use fnox as a library in three lines instead of replicating the internals of GetCommand::run:

use fnox::Fnox;

let fnox = Fnox::discover()?;          // walks up + merges parent + local + global config
let value = fnox.get("MY_KEY").await?;
let names = fnox.list()?;

The new Fnox type lives in src/library.rs and is re-exported from the crate root. Highlights:

  • Fnox::discover() mirrors the binary's full config-discovery and merge chain via Config::load_smart, including the FNOX_PROFILE env var.
  • Fnox::open(path) loads an explicit config without the upward-search/merge behavior.
  • Fnox::with_profile("staging") builder for non-default profiles.
  • get() returns FnoxError::SecretNotFound with a populated "Did you mean…" suggestion, matching the CLI's UX so callers don't need to recompute it.
  • Fnox is cheap to clone (Config is held behind an Arc) and safe to hold across .await.

set() is intentionally not part of this first cut; it'll get its own design pass.

Fixed

fnox set no longer silently downgrades encrypted secrets to plaintext (#439) -- @rpendleton …

Originalquelle(öffnet in neuem Tab)Problem melden

Hk von jdx

Hk 1.44.2: pklr-Cache und weniger Warnungen

Hk 1.44.2 behebt, dass Änderungen an hk.pkl unter HK_PKL_BACKEND=pklr den Cache nicht ungültig machten, und unterdrückt die pklr-Deprecation-Warnungen beim Laden von Builtins.pkl.

A small patch release focused on two HK_PKL_BACKEND=pklr rough edges: edits to hk.pkl are now picked up immediately, and loading Builtins.pkl no longer spams deprecation warnings on every run.

Fixed

  • hk.pkl edits are now picked up under HK_PKL_BACKEND=pklr (@jdx) #879. The two pkl backends return different things from analyze_imports — the pkl CLI happens to include the source file in resolvedImports, but pklr only returns transitive import URIs. As a result, with pklr the main hk.pkl was missing from the config cache's fresh_files, so edits didn't invalidate the cache and hk kept reusing the stale Config until you ran hk cache clear. The main config path is now always added to fresh_files. Fixes #877.

  • No more pklr deprecation warnings on every Builtins.pkl load (@jdx) #880. Previously, every invocation under HK_PKL_BACKEND=pklr printed:

    [pklr] WARNING: property 'check_byte_order_marker' is deprecated
    [pklr] WARNING: property 'fix_byte_order_marker' is deprecated
    ``` …
    

Originalquelle(öffnet in neuem Tab)Problem melden

Fnox von jdx

Fnox 1.22.0: Library-API und Korrektur bei fnox set

Fnox 1.22.0 führt eine Top-Level-Fnox-Library-API zum Einbetten in Rust-Anwendungen ein und behebt, dass fnox set verschlüsselte Secrets stillschweigend zu Klartext herabstufen konnte.

v1.22.0 introduces a top-level library API for embedding fnox in Rust applications, and fixes a sharp edge in fnox set that could turn an encrypted secret into plaintext.

Added

Top-level Fnox library API (#442) -- @bglusman

Downstream Rust consumers can now use fnox as a library in three lines instead of replicating the internals of GetCommand::run:

use fnox::Fnox;

let fnox = Fnox::discover()?;          // walks up + merges parent + local + global config
let value = fnox.get("MY_KEY").await?;
let names = fnox.list()?;

The new Fnox type lives in src/library.rs and is re-exported from the crate root. Highlights:

  • Fnox::discover() mirrors the binary's full config-discovery and merge chain via Config::load_smart, including the FNOX_PROFILE env var.
  • Fnox::open(path) loads an explicit config without the upward-search/merge behavior.
  • Fnox::with_profile("staging") builder for non-default profiles.
  • get() returns FnoxError::SecretNotFound with a populated "Did you mean…" suggestion, matching the CLI's UX so callers don't need to recompute it.
  • Fnox is cheap to clone (Config is held behind an Arc) and safe to hold across .await.

set() is intentionally not part of this first cut; it'll get its own design pass.

Fixed

fnox set no longer silently downgrades encrypted secrets to plaintext (#439) -- @rpendleton …

Originalquelle(öffnet in neuem Tab)Problem melden

Hk von jdx

Hk 1.44.1: post-commit, pre-rebase und YADM-Worktrees

Hk 1.44.1 ergänzt eigene hk run-Subcommands für post-commit und pre-rebase und sorgt dafür, dass HK_STASH_UNTRACKED=false auch den Scan nach untracked Dateien überspringt, was YADM-artige Dotfile-Repos beschleunigt.

A small patch release fixing two rough edges introduced with the v1.44.0 global-hooks work: post-commit and pre-rebase now have proper hk run subcommands, and HK_STASH_UNTRACKED=false finally skips the untracked-file scan (not just the stash), which makes hk usable on YADM-style dotfile repos where GIT_WORK_TREE is $HOME.

Fixed

  • hk run post-commit and hk run pre-rebase are now first-class subcommands (@jdx) #858. Both events are written by hk install, but previously fell through to the generic other handler — so they didn't show up in hk run --help and their arguments got mixed into the positional file collector, occasionally producing confusing Usage: hk run --from-ref <FROM_REF> [FILES]... errors during git rebase. pre-rebase now has a typed <upstream> [branch] signature matching git's spec, and post-commit is a proper no-args handler. …

Originalquelle(öffnet in neuem Tab)Problem melden

Hk von jdx

Hk 1.44.0: Globale Installation und --plan

Hk 1.44.0 führt hk check --plan/--why/--json zum Trockenlauf von Hooks, hk install --global mit Git 2.54+, Unterstützung für GIT_DIR/GIT_WORK_TREE (z. B. YADM) und das Builtin cocogitto_commit_msg ein.

This release is all about understanding and controlling where hk runs. hk check --plan lets you dry-run a hook and see exactly which steps would execute and why, hk install --global registers hk against every repo on your machine using Git 2.54's new config-based hooks, and bare-repo dotfile managers like YADM are now supported via GIT_DIR/GIT_WORK_TREE.

Highlights

  • hk check --plan / --why / --json — dry-run any hook to see which steps would run, which would skip, and why, with JSON output for tooling
  • hk install --global — install hooks once in ~/.gitconfig and have hk apply to every repo (Git 2.54+)
  • Bare-repo dotfile support — hk now respects GIT_DIR and GIT_WORK_TREE, so YADM and similar setups work out of the box
  • New cocogitto_commit_msg builtin for Conventional Commits validation

Added

  • hk check --plan / -P, --why [STEP] / -W, --json / -J: You can now dry-run a hook to see what hk would do without executing any commands. --plan prints the parallel groups, matched file counts, and included/skipped steps with reasons; --why drills into the skip reasons for every step (or a specific one); --json emits the plan as structured JSON for tooling. (@jdx) #848

    $ hk check --plan
    Plan: check
    Run type: check
    
      [parallel group] group_0
        ○ actionlint  (no files matched filters)
        ✓ cargo-fmt  (6 files matched) …
    

Originalquelle(öffnet in neuem Tab)Problem melden