Merge pull request 'Federation: reject stale and incomplete HTTP signatures' (#8033) from lambadalambda/pleroma:fix/signature-freshness into develop
Reviewed-on: https://git.pleroma.social/pleroma/pleroma/pulls/8033
This commit is contained in:
commit
ca44028928
12 changed files with 563 additions and 59 deletions
|
|
@ -373,6 +373,9 @@ config :pleroma, :activitypub,
|
|||
note_replies_output_limit: 5,
|
||||
sign_object_fetches: true,
|
||||
authorized_fetch_mode: false,
|
||||
signature_policy: :enforce,
|
||||
signature_max_age: 7200,
|
||||
signature_max_clock_skew: 3600,
|
||||
client_api_enabled: false,
|
||||
anonymize_reporter: false,
|
||||
anonymize_reporter_local_nickname: ""
|
||||
|
|
|
|||
|
|
@ -1788,6 +1788,27 @@ config :pleroma, :config_description, [
|
|||
description:
|
||||
"List of IPs (CIDR format accepted) to exempt from HTTP Signatures requirement (for example to allow debugging, you shouldn't otherwise need this)"
|
||||
},
|
||||
%{
|
||||
key: :signature_policy,
|
||||
type: {:dropdown, :atom},
|
||||
description:
|
||||
"What to do with incoming HTTP signatures that do not sign the date (or `(created)`), are outside the allowed time window, or do not sign the digest of a request body. `:enforce` treats them as invalid, `:log` only logs them",
|
||||
suggestions: [:enforce, :log]
|
||||
},
|
||||
%{
|
||||
key: :signature_max_age,
|
||||
type: :integer,
|
||||
description:
|
||||
"How old, in seconds, the signed date of an incoming HTTP signature can be. Default: 7200 (2 hours)",
|
||||
suggestions: [7200]
|
||||
},
|
||||
%{
|
||||
key: :signature_max_clock_skew,
|
||||
type: :integer,
|
||||
description:
|
||||
"How far, in seconds, the signed date of an incoming HTTP signature can be in the future. Default: 3600 (1 hour). A `(created)` time in the future is always rejected",
|
||||
suggestions: [3600]
|
||||
},
|
||||
%{
|
||||
key: :note_replies_output_limit,
|
||||
type: :integer,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue