1
0
Fork 0
mirror of https://github.com/zhaofengli/attic.git synced 2024-12-14 11:57:30 +00:00
Commit graph

333 commits

Author SHA1 Message Date
valan
c1d6abeb28
Update README.md
Brief description of how to disable use of a cache
2024-10-26 15:51:38 -07:00
Zhaofeng Li
2b05b7d986
Merge pull request #187 from cole-h/stream-error-better
Display anyhow error chains better
2024-10-16 16:09:56 -06:00
Cole Helbling
566ef5ebc3 Display anyhow error chains better
The default Display / `{}` formatter only shows the outermost error. We
have to use `{:#}` to show all the errors in the chain. This will make
stream errors somewhat more informational.

Before:

    Stream error: Storage error: service error

After:

    Stream error e=Storage error: service error: NoSuchKey: The specified key does not exist.: NoSuchKey: The specified key does not exist.

(after I manually mucked with the DB to change the S3 url for an item to
a non-existent name)
2024-10-15 13:33:36 -07:00
Zhaofeng Li
e5c8d2d509
Merge pull request #185 from zhaofengli/nixos-use-hs256-placeholder-secret
nixos: Switch back to setting a placeholder HS256 secret
2024-10-10 10:22:51 -06:00
Zhaofeng Li
f36329a299 nixos: Switch back to setting a placeholder HS256 secret when checking config 2024-10-08 08:31:44 -06:00
Zhaofeng Li
1b29816235
Merge pull request #182 from zhaofengli/push-stdin-fixes
client/push: Misc fixes
2024-10-06 13:03:10 -06:00
Zhaofeng Li
880ca6d477
Merge pull request #181 from zhaofengli/hs256-allow-arbitrary-byte-string
token: Don't require valid UTF-8 for HS256 secrets
2024-10-06 12:29:24 -06:00
Zhaofeng Li
96383ccab4 integration-tests/basic: Add --stdin test 2024-10-06 12:29:03 -06:00
Zhaofeng Li
c54c26d82e client/push: Disallow paths on the command line with --stdin 2024-10-06 12:29:03 -06:00
Zhaofeng Li
014fb92a9e client/push: Suggest --stdin if stdin isn't a terminal 2024-10-06 12:29:03 -06:00
Zhaofeng Li
8f215042db client/push: Ignore empty lines 2024-10-06 12:29:03 -06:00
Zhaofeng Li
3d10425b6a server/config: Fail fast on token decoding errors 2024-10-06 11:19:03 -06:00
Zhaofeng Li
dcadbec66b token: Don't require valid UTF-8 for HS256 secrets 2024-10-06 11:19:03 -06:00
Zhaofeng Li
b4338a1670
Merge pull request #179 from zhaofengli/config-allow-omitting-jwt
server/config: Allow omitting jwt section entirely
2024-10-05 18:14:40 -06:00
Zhaofeng Li
77f76d55ed server/config: Allow omitting jwt section entirely 2024-10-05 17:42:16 -06:00
Zhaofeng Li
858120c450
Merge pull request #177 from zhaofengli/rs256-support
Support RS256 JWTs
2024-10-05 12:34:44 -06:00
Zhaofeng Li
d2363b5879 server/config: Provide instructions for the user to migrate their HS256 config 2024-10-05 11:50:48 -06:00
Zhaofeng Li
0d2b20025e token: Bring back HS256 test
This does make it decode the keys every iteration in the stability
test, which isn't too much of an issue and can be fixed later.
2024-10-05 11:50:48 -06:00
Zhaofeng Li
5d6560e409 Merge branch 'main' into HEAD 2024-10-05 11:50:16 -06:00
Zhaofeng Li
61ebdef2e2
Merge pull request #176 from jzbor/push-from-stdin
attic-client/push: Add flag to read paths from stdin
2024-10-04 13:36:12 -06:00
Zhaofeng Li
c5764fca3b client/push: Use PushSession for --stdin
Instead of eagerly consuming stdin, read line-by-line and feed into
PushSession. This allows for a `nix-build | attic push` workflow.
2024-10-04 13:18:15 -06:00
Zhaofeng Li
c4c7341a49
Merge pull request #78 from apeschar/atticadm-pipe
Use --pipe for systemd-run
2024-10-04 10:02:33 -06:00
Albert Peschar
46b83a04d9 Use --pipe for systemd-run
Without --pipe stderr and stdout are combined, breaking scripts that use
atticd-atticadm when it generates warnings.
2024-10-04 09:42:42 -06:00
Zhaofeng Li
99f3fbdc3d client/push: Support retrieving results from a PushSession 2024-10-04 09:16:22 -06:00
Zhaofeng Li
d4b365b503 client/push: Support flushing a PushSession 2024-10-04 09:16:22 -06:00
Zhaofeng Li
e8cf9548a8 client/push: Tweak --stdin flag help text, remove short flag 2024-10-04 08:07:56 -06:00
jzbor
265038a109 attic-client/push: Add flag to read paths from stdin 2024-10-04 08:06:53 -06:00
Zhaofeng Li
416687e59c
Merge pull request #174 from zhaofengli/devshell-nix-consistency
flake: Follow package Nix version in dev shell
2024-09-11 09:40:20 -06:00
Zhaofeng Li
89cefcd501 flake: Follow package Nix version in dev shell 2024-09-11 11:10:46 -04:00
Zhaofeng Li
1bd0279b79 attic/build.rs: Fix warnings when nix_store is disabled 2024-09-11 11:10:46 -04:00
Zhaofeng Li
2babfb7f01 flake.lock: Update nixpkgs 2024-09-11 11:10:46 -04:00
Zhaofeng Li
54bbd7d51d
Merge pull request #173 from zhaofengli/multi-arch-image
Build and push multi-arch images
2024-09-11 09:09:39 -06:00
Zhaofeng Li
c3618a20e9 .github: Update deps 2024-09-11 09:59:49 -04:00
Zhaofeng Li
b45885e67b Build and push multi-arch images
Fixes #147.
2024-09-11 09:59:49 -04:00
Zhaofeng Li
444ea808d5 flake/devshells: Add skopeo and manifest-tool 2024-09-11 09:59:49 -04:00
Zhaofeng Li
2a5cce4baa flake/packages: Add cross-compiled container image for aarch64-linux 2024-09-11 09:59:49 -04:00
Zhaofeng Li
f5463eccc0 crane: Ignore flake directory 2024-09-11 09:59:49 -04:00
Zhaofeng Li
0f981dab00 crane: Add overrides for cross compilation 2024-09-11 09:59:49 -04:00
Zhaofeng Li
b63394302f flake: Add escape hatch to inject package args 2024-09-11 09:59:49 -04:00
Zhaofeng Li
2c43acd86b flake: Allow overriding Rust toolchain 2024-09-11 09:59:49 -04:00
Zhaofeng Li
aec90814a4
Merge pull request #172 from zhaofengli/flake-cleanup
flake: Remove flake-utils, misc cleanup
2024-09-08 11:08:04 -06:00
Zhaofeng Li
8157a3337a flake/devshells: Move rustc to separate category 2024-09-08 12:44:22 -04:00
Zhaofeng Li
1da3ed6b50 flake/packages: Make makeCranePkgs extensible 2024-09-08 12:44:22 -04:00
Zhaofeng Li
9f9facd905 flake: Remove flake-utils 2024-09-08 12:44:22 -04:00
Zhaofeng Li
bea72d75b6
Merge pull request #167 from zhaofengli/rustfmt
rustfmt
2024-09-02 12:10:20 -06:00
Zhaofeng Li
20ada8ea5a .github: Add lint workflow 2024-09-02 14:07:37 -04:00
Zhaofeng Li
1899dd79f1 rustfmt 2024-09-02 14:07:37 -04:00
Zhaofeng Li
938cb7634b .cargo: Rename config to config.toml
Support added since 1.39.
2024-09-02 14:07:37 -04:00
Zhaofeng Li
f74cee0036
Merge pull request #165 from zhaofengli/flake-parts
Migrate to flake-parts
2024-08-30 14:08:15 -06:00
Zhaofeng Li
7f275f00d8 .github: Update bash on macOS runners 2024-08-30 12:33:28 -04:00