Skip to content

feat(api): Add /on_subscribe endpoint for registry subscription chall… #263

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 3, 2025

Conversation

emindsajay
Copy link
Contributor

…enge

  • Implements /on_subscribe API endpoint to handle registry subscription challenges
  • Validates request body for required challenge and subscriber_id fields
  • Verifies subscriber_id matches configured value
  • Signs challenge using private key with libsodium crypto
  • Returns signed challenge in Base64 format
  • Adds detailed logging for debugging and monitoring
  • Includes error handling for invalid requests

…enge

- Implements /on_subscribe API endpoint to handle registry subscription challenges
- Validates request body for required challenge and subscriber_id fields
- Verifies subscriber_id matches configured value
- Signs challenge using private key with libsodium crypto
- Returns signed challenge in Base64 format
- Adds detailed logging for debugging and monitoring
- Includes error handling for invalid requests
@shreyvishal shreyvishal merged commit 452b2ee into develop Apr 3, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants