Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] TOML parse error: missing field jwt #178

Closed
diogotcorreia opened this issue Oct 5, 2024 · 0 comments · Fixed by #179
Closed

[bug] TOML parse error: missing field jwt #178

diogotcorreia opened this issue Oct 5, 2024 · 0 comments · Fixed by #179

Comments

@diogotcorreia
Copy link

Likely related to #177.

I'm passing the HS256 secret token through the ATTIC_SERVER_TOKEN_HS256_SECRET_BASE64 environment variable.

However, the aforementioned PR seems to have broken this, since there's now this error when building:

error: builder for '/nix/store/hxwj5wbvgpjl45dnl45lsz98y4jar72y-checked-attic-server.toml.drv' failed with exit code 1;
       last 25 log lines:
       > avg-size = 65536
       > max-size = 262144
       > min-size = 16384
       > nar-size-threshold = 65536
       >
       > [compression]
       > type = "zstd"
       >
       > [database]
       > url = "postgresql:///atticd"
       >
       > [garbage-collection]
       > default-retention-period = "7 days"
       > interval = "12 hours"
       >
       > [storage]
       > path = "/var/lib/atticd/storage"
       > type = "local"
       > Attic Server 0.1.0 (release)
       > Error: TOML parse error at line 1, column 1
       >   |
       > 1 | allowed-hosts = ["nix-cache.diogotc.com"]
       >   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       > missing field `jwt`
       >
       For full logs, run 'nix log /nix/store/hxwj5wbvgpjl45dnl45lsz98y4jar72y-checked-attic-server.toml.drv'.

My config: https://github.com/diogotcorreia/dotfiles/blob/0fb5f7f536be7568d5de5470ce213d2b0d45c38f/hosts/phobos/atticd.nix

I'm using the included nixos module from this repo, so I think that's not handling this change correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant