Commit graph

17 commits

Author SHA1 Message Date
c005a19efe correct typo, upgrade deps 2026-04-30 16:28:33 +01:00
Oneric
fa3891074c Bump version to 1.1.1
Just one minor change: key material is now hidden from logs
2025-11-25 00:00:00 +00:00
Oneric
c98a4df78b Bump Version
New features since API rework:
 - handling request-target aliases is now suppported
 - request-target aliases can be lazily evaluated
 - signature metadata like date is now checked
 - signatures missing mandatory headers are rejected due to being insecure
 - creation of signatures missing mandatory headers will raise an error
2025-02-21 21:43:18 +01:00
Oneric
86bc35c2a7 Actually check signature metadata 2025-02-21 21:43:18 +01:00
Oneric
98779d180a Rework library interface
And also clean up internals while at it.
Now no more weird req_headers mangling is needed
with callers being required to reparse the signature just to know how to
mangle things or in case of the adapter to figure out what keys should
be fetched.

Unexpected pseudo headers also no longer break verification completely,
they’ll be processed such that verification works, albeit we won't
apply any intended side effects until full support is added.

The interface is now also prepared to handle request target aliases
inside the library in the future to avoid superfluous key refetches etc
on each failing alias. This and further improvments will be implemented
in future commits.

As this is breaking the existing API,
the major version is bumped from 0 to 1.
2025-02-21 21:43:18 +01:00
Oneric
15bbd8cd23 Update repo link
Pleroma still hasn’t merged the (created) /expires) PR,
so it seems like we’ll carry our own fork for the foreseeable future
2025-02-21 21:43:18 +01:00
f1c72225a0 Update version, tool versions 2024-06-12 18:20:28 +01:00
0424ad2f8c OTP26 support 2023-12-21 17:16:17 +00:00
Haelwenn (lanodan) Monnier
ecad901ccf Make repository REUSE compliant 2022-07-21 17:47:19 +02:00
Haelwenn (lanodan) Monnier
f837d7e4c8 Update dependencies 2022-03-07 14:56:21 +01:00
Haelwenn (lanodan) Monnier
7fe4b8f9a3 Bump to version 0.1.1 2021-11-10 00:44:49 +01:00
Haelwenn
8050c438ea Merge branch 'fix/public-key-warnings' into 'master'
Add `:public_key` to `extra_applications`

See merge request pleroma/elixir-libraries/http_signatures!1
2021-11-09 23:43:00 +00:00
Thomas Citharel
dc3f0275ee Change license metadata field to a valid SPDX identifier
Not mandatory, but recommended for hex.pm. https://hex.pm/docs/publish#adding-metadata-to-code-classinlinemixexscode

Can be useful for a project like https://github.com/Cantido/hex_licenses
2021-09-22 15:49:10 +00:00
Egor Kislitsyn
80e6df08d2
Add :public_key to extra_applications 2020-11-17 22:06:52 +04:00
Haelwenn (lanodan) Monnier
de58aed3cb
mix.exs: Add fields for hex publishing 2020-07-23 19:13:29 +02:00
William Pitcock
9ed2fa7cdf mix: add credo dependency 2019-05-14 16:58:34 +00:00
William Pitcock
fbd7bfb178 initial commit 2019-05-14 16:55:11 +00:00