jw-pkg/src/python/jw/pkg/lib
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jan Lindemann f70cc48eb6
All checks were successful
CI / Packaging - Kali Linux (pull_request) Successful in 4m32s
CI / Packaging - OpenSUSE Tumbleweed (pull_request) Successful in 4m52s
CI / Packaging test (pull_request) Successful in 0s
CI / Packaging - Kali Linux (push) Successful in 4m35s
CI / Packaging - OpenSUSE Tumbleweed (push) Successful in 5m17s
CI / Packaging test (push) Successful in 0s
lib.ec.secret_store.TarGpg: Add the write path
The TarGpg store is read-only: put() and unlink() raise, so the store can
be copied from, but not into, and a copy that lands entries and blobs below
a host prefix has no tarball target.

This matches the way jw-pkg secrets has worked for a long time. Since
Stores are now FileContext-backed, a write path can be cleanly implemented,
and that's what this commit does.

A put rebuilds the tarball: the existing members minus the removed, plus
the written one; the result is signed with the recipient from
JW_SECRETS_TARGPG_RECIPIENT and written back to the tarball location, which
must be a local path. A missing tarball is an empty store, so a put creates
it.

The put dispatch follows the other stores: a typed entry put replaces the
entry with the given serialized content, a key put merges into its entry,
creating it if it does not exist yet, and an untyped put below an entry
lands a key there, otherwise a blob. unlink() removes the node's member.

Signed-off-by: Jan Lindemann <jan@janware.com>
Assisted-by: unsloth/Qwen3.8-27B-GGUF:Q4_K_M with pi.dev v1.1.0
2026-10-17 13:09:45 +02:00
..
distros lib.Distro.verify(): Add method 2026-10-16 09:40:22 +02:00
ec lib.ec.secret_store.TarGpg: Add the write path 2026-10-17 13:09:45 +02:00
pm lib.Distro.verify(): Add method 2026-10-16 09:40:22 +02:00
version lib.version.Dependency.__version_boundaries(): Use Version.next() 2026-09-15 21:43:47 +02:00
App.py lib.{App,Cmd}: Pass parent= by name to Cmd* constructors 2026-09-20 11:51:25 +02:00
AsyncRunner.py lib.AsyncRunner: Fix asyncio.Event() for Python 3.12+ 2026-08-15 19:51:36 +02:00
base.py lib: Add hierarchical FileType framework 2026-10-17 09:55:16 +02:00
Cmd.py lib.{App,Cmd}: Pass parent= by name to Cmd* constructors 2026-09-20 11:51:25 +02:00
CopyContext.py App, cmds, lib: Fix Any returns from typed functions 2026-08-09 12:07:37 +00:00
Distro.py lib.Distro.verify(): Add method 2026-10-16 09:40:22 +02:00
ExecApp.py lib.ExecApp: Add class 2026-08-22 17:31:57 +02:00
ExecContext.py lib.FcCache: Add a write-through read cache 2026-10-17 12:17:21 +02:00
FcCache.py lib.FcCache: Add a write-through read cache 2026-10-17 12:17:21 +02:00
FcWrapper.py lib.FcWrapper: Add a delegating file context wrapper 2026-10-17 12:17:21 +02:00
file_types.py lib: Add hierarchical FileType framework 2026-10-17 09:55:16 +02:00
FileContext.py lib.ec.secret_store: Add and use framework 2026-10-17 12:52:20 +02:00
FlaggedFile.py lib.Distro.verify(): Add method 2026-10-16 09:40:22 +02:00
init.py init.detect_modules(): Add base_types filter 2026-08-24 14:23:27 +02:00
kv.py lib.ec.secret_store: Add and use framework 2026-10-17 12:52:20 +02:00
log.py py-check.mk: Run isort with "make format" 2026-08-11 16:45:14 +02:00
Makefile jw.pkg.build.lib: Move to jw.pkg.lib 2026-01-26 17:58:23 +01:00
Package.py py-check.mk: Run isort with "make format" 2026-08-11 16:45:14 +02:00
PackageFilter.py py-check.mk: Run isort with "make format" 2026-08-11 16:45:14 +02:00
ProcFilter.py App, lib, cmds: Fix mypy.explicit-override fallout 2026-08-07 18:02:26 +02:00
ProcFilterGpg.py App, lib, cmds: Fix mypy.explicit-override fallout 2026-08-07 18:02:26 +02:00
ProjectConf.py lib.ProjectConf: Add module 2026-06-30 12:46:36 +02:00
Result.py App, cmds, lib: Fix Any returns from typed functions 2026-08-09 12:07:37 +00:00
TarIo.py py-check.mk: Run isort with "make format" 2026-08-11 16:45:14 +02:00
Types.py lib.Types: Restrict LoadTypes to ABC-derived classes 2026-09-07 09:12:42 +02:00
Uri.py lib.Uri: Fix path join for empty authority 2026-09-05 14:01:46 +02:00
util.py lib.util.copy(): Terminate the walk at compound nodes 2026-10-17 11:47:06 +02:00