Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Upstream release
Bumps bundled fnox binary from 1.20.0 to 1.22.0.
Release: https://github.com/jdx/fnox/releases/tag/v1.22.0
Release notes
v1.22.0 introduces a top-level library API for embedding fnox in Rust applications, and fixes a sharp edge in
fnox setthat could turn an encrypted secret into plaintext.Added
Top-level
Fnoxlibrary API (#442) -- @bglusmanDownstream Rust consumers can now use fnox as a library in three lines instead of replicating the internals of
GetCommand::run:The new
Fnoxtype lives insrc/library.rsand is re-exported from the crate root. Highlights:Fnox::discover()mirrors the binary's full config-discovery and merge chain viaConfig::load_smart, including theFNOX_PROFILEenv var.Fnox::open(path)loads an explicit config without the upward-search/merge behavior.Fnox::with_profile("staging")builder for non-default profiles.get()returnsFnoxError::SecretNotFoundwith a populated "Did you mean…" suggestion, matching the CLI's UX so callers don't need to recompute it.Fnoxis cheap to clone (Configis held behind anArc) and safe to hold across.await.set()is intentionally not part of this first cut; it'll get its own design pass.Fixed
fnox setno longer silently downgrades encrypted secrets to plaintext (#439) -- @rpendletonWhen multiple providers were configured without a
default_provider, runningfnox seton an existing secret without--providerwould write the new value as plaintext while leaving the originalprovider = "..."key in place. The nextfnox getthen failed trying to "decrypt" a value that was no longer encrypted.fnox setnow reuses the secret's existing provider before falling back todefault_provideror plaintext, so updates stay encrypted and readable without having to pass--provideron every call:Deterministic provider ordering in the generated schema (#432) -- @jdx
Within-category provider ordering in
build/generate_providers.rswas inheritingfs::read_dirorder, which is OS- and filesystem-dependent. That non-determinism flowed intodocs/public/schema.jsonand caused autofix.ci to keep reshuffling 100+ lines between runs. A secondary sort by provider name fixes the churn; runningfnox schematwice now produces byte-identical output.Mobile docs banner layout (#437) -- @jdx
At
<=640pxthe announcement banner now switches to a column layout with the close button pinned to the top-right corner, instead of cramming the message and "Read more" link onto one squeezed line.Changed
Cargo.tomlat build time) and a GitHub star count, matching the mise/aube docs (#443) -- @jdxjdx.dev/banner.jsonand respects theexpiresfield (#434, #436) -- @jdxNew Contributors
Full Changelog: jdx/fnox@v1.21.0...v1.22.0
💚 Sponsor fnox
fnox is maintained by @jdx under en.dev — a small independent studio building developer tooling like mise, aube, hk, and more. Keeping fnox secure, maintained, and free is funded by sponsors.
If fnox is handling secrets or config for you or your team, please consider sponsoring at en.dev. Sponsorships are what let fnox stay independent and the project keep moving.