Skip to content

[pull] main from hookdeck:main - #192

Merged
pull[bot] merged 2 commits into
erickirt:mainfrom
hookdeck:main
Sep 28, 2026
Merged

pull[bot] merged 2 commits into
erickirt:mainfrom
hookdeck:main

Conversation

@pull

@pull pull Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

chiliec and others added 2 commits September 28, 2026 22:42
* fix: include credentials in publisher cache key

Rotating a destination's credentials (e.g. webhook rotate_secret) had no
effect while the destination's publisher was cached, because
MakePublisherKey only hashed ID, type and config. Include credentials in
the key so a credential change resolves a fresh publisher. Hash map
entries in sorted key order so the key is stable across calls.

Fixes #1084

* Fold delivery metadata into publisher key; harden eviction log (review)

- Include dest.DeliveryMetadata in MakePublisherKey: providers bake delivery
  metadata into the publisher at creation, so changing delivery_metadata had the
  same stale-publisher bug as credentials. Add a 'delivery metadata change'
  subtest (RED without the change: both events hit the pre-change publisher).
- onEvict: log only the destination ID prefix, not the full cache key. The key
  now folds credentials and delivery metadata into an FNV hash, so the suffix is
  a secret-derived value that should not reach logs.
- hashSortedMap: use slices.Sorted(maps.Keys(m)) per review nit.
…est logs (#1095)

* fix(apirouter): omit credentials from include=destination on attempts

Attempts embed the destination without credentials. Credentials are only
returned by the destination endpoints.

The spec gets an AttemptDestination schema, since the per-type
Destination schemas require credentials.

Refs #1094

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix(apirouter): redact all credential values from logged request bodies

Redaction relied on provider metadata, which skipped credentials not
marked sensitive (webhook secrets) and bodies without a type (PATCH).
Every credential value is now redacted.

Refs #1094

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@pull pull Bot locked and limited conversation to collaborators Sep 28, 2026
@pull pull Bot added the ⤵️ pull label Sep 28, 2026
@pull
pull Bot merged commit d0342db into erickirt:main Sep 28, 2026
2 of 3 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants