Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the key manipulation functions added in src/keys.{c|h} in tangd. This effectively removes the need for a cache directory -- usually /var/cache/tang --, which contained pre-computed files with signed advertisements and JWK with keys for deriving new keys. This computation was done by the tangd-update script, which has also been removed in this commit. We relied on systemd to run this script whenever the JWK dir -- usually /var/db/tang, which is where the actual keys are located -- changed, to keep the cache directory updated, but this is sometimes unreliable, causing issues like the ones reported in #23 and #24. As of now, tang performs these computations itself and does not depend on external scripts to make sure it has reliable information regarding its keys. Additionally, tang also creates a new pair of keys if none exist.
- Loading branch information
1 parent
eeb73dc
commit c0f080e
Showing
13 changed files
with
28 additions
and
170 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,10 @@ | ||
tangd_keygen_service = configure_file( | ||
input: 'tangd-keygen.service.in', | ||
output: 'tangd-keygen.service', | ||
configuration: data | ||
) | ||
|
||
tangd_service = configure_file( | ||
input: 'tangd@.service.in', | ||
output: 'tangd@.service', | ||
configuration: data | ||
) | ||
|
||
tangd_update_path = configure_file( | ||
input: 'tangd-update.path.in', | ||
output: 'tangd-update.path', | ||
configuration: data | ||
) | ||
|
||
tangd_update_service = configure_file( | ||
input: 'tangd-update.service.in', | ||
output: 'tangd-update.service', | ||
configuration: data | ||
) | ||
|
||
units += join_paths(meson.current_source_dir(), 'tangd.socket') | ||
units += tangd_keygen_service | ||
units += tangd_service | ||
units += tangd_update_path | ||
units += tangd_update_service | ||
|
||
# vim:set ts=2 sw=2 et: |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
[Unit] | ||
Description=Tang Server | ||
Requires=tangd-keygen.service | ||
After=tangd-keygen.service | ||
|
||
[Service] | ||
StandardInput=socket | ||
StandardOutput=socket | ||
StandardError=journal | ||
ExecStart=@libexecdir@/tangd @cachedir@ | ||
ExecStart=@libexecdir@/tangd @jwkdir@ |