Implement api key - #160
Open
akinerin wants to merge 3 commits into
Open
Conversation
…nd exponential backoff - Add generateWebhookSignature (timestamp + body -> HMAC-SHA256) and buildWebhookHeaders in crypto.util - Add X-Astroid-Delivery and X-Astroid-Event headers constants - Update WebhooksProcessor and WebhookWorker to sign timestamp-concatenated body, inject ConfigService fallback (WEBHOOK_SECRET / STELLAR_WEBHOOK_SECRET), include X-Astroid-Signature, X-Astroid-Delivery, X-Astroid-Event, X-Astroid-Timestamp headers with 5000ms fetch timeout - Configure BullMQ retries up to 5 times with exponential backoff (2000ms base) and jitter - Add webhook.service.spec.ts covering signature generation, header formatting, and retry behavior - Update existing processor specs for new signing scheme Closes #
…entation - Confirm ApiKey schema stores SHA-256 hashedKey - Verify ApiKeyGuard/RequireScopes with 401/403 handling - All auth guard tests passing (483 tests) Closes #
|
Needs review Linked to The pull request modifies webhook delivery and cryptographic signing files instead of implementing the requested API Key Authentication Guard with Scoped Permissions. Reviewed commit: |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes #115