Skip to content

Multitenant webhooks#195

Open
g3co wants to merge 19 commits intomasterfrom
multitenant-webhooks
Open

Multitenant webhooks#195
g3co wants to merge 19 commits intomasterfrom
multitenant-webhooks

Conversation

@g3co
Copy link
Contributor

@g3co g3co commented Mar 17, 2026

No description provided.

g3co added 3 commits March 17, 2026 17:30
…moving the old handler. Update main application to utilize the new service for wallet webhooks. Clean up configuration by removing unused WebhookURL variable.
@github-actions
Copy link

github-actions bot commented Mar 17, 2026

📊 Performance Metrics

Performance Metrics (memory storage)

  • CPU: 0.94s (4 cores) • Goroutines: 8 • Threads: 7
  • Memory: 17.5MB heap • 49.9MB RAM • 40.9MB total • 266593 allocs
  • GC: 11 cycles (0.42ms avg)
  • FDs: 9/65536 (0.0%)

…e management. Update various webhook-related functions to handle errors gracefully and improve code clarity by using underscore for ignored return values.
@github-actions
Copy link

github-actions bot commented Mar 17, 2026

📊 Performance Metrics

Performance Metrics (postgres storage)

  • CPU: 1.28s (4 cores) • Goroutines: 10 • Threads: 7
  • Memory: 12.8MB heap • 49.1MB RAM • 42.0MB total • 295755 allocs
  • GC: 12 cycles (0.26ms avg)
  • FDs: 35/65536 (0.1%)

@github-actions
Copy link

github-actions bot commented Mar 17, 2026

📊 Performance Metrics

Performance Metrics (cluster-valkey storage)

  • CPU: 0.88s (4 cores) • Goroutines: 11 • Threads: 10
  • Memory: 27.4MB heap • 68.3MB RAM • 42.3MB total • 328309 allocs
  • GC: 11 cycles (0.49ms avg)
  • FDs: 71/65536 (0.1%)

g3co added 4 commits March 17, 2026 19:37
…ook tests

- Added `WALLET_LIST_URL` and `WALLET_LIST_REFRESH_INTERVAL` to `docker-compose.dnsmasq.yml` and `docker-compose.nginx.yml` for wallet integration.
- Refactored webhook tests to utilize a shared mock server and improved handling of webhook readiness and record management.
- Changed `WALLET_LIST_URL` from `http://bridge-gointegration:9091/wallets` to `http://gointegration:9091/wallets` across multiple Docker Compose files for consistency.
- Updated `WEBHOOK_MOCK_HOST` from `bridge-gointegration` to `gointegration` in relevant services to reflect the new configuration.
@github-actions
Copy link

github-actions bot commented Mar 17, 2026

📊 Performance Metrics

Performance Metrics (nginx storage)

  • CPU: 0.20s (4 cores) • Goroutines: 6 • Threads: 6
  • Memory: 1.0MB heap • 23.8MB RAM • 2.3MB total • 18647 allocs
  • GC: 1 cycles (0
    5000.00ms avg)
  • FDs: 14/65536 (0.0%)

@github-actions
Copy link

github-actions bot commented Mar 17, 2026

📊 Performance Metrics

Performance Metrics (dnsmasq storage)

  • CPU: 0.44s (4 cores) • Goroutines: 11 • Threads: 7
  • Memory: 2.5MB heap • 26.4MB RAM • 11.1MB total • 68087 allocs
  • GC: 6 cycles (0.20ms avg)
  • FDs: 21/65536 (0.0%)

g3co added 11 commits March 18, 2026 12:23
- Replaced the previous WALLET_LIST_URL and WALLET_LIST_REFRESH_INTERVAL with a new WEBHOOK_CONFIG environment variable for per-wallet webhook settings.
- Updated the main application and webhook service to utilize the new configuration format, allowing for individual wallet URLs and optional authentication tokens.
- Adjusted Docker Compose files and documentation to reflect these changes, ensuring consistency across services.
…on token

- Modified the WEBHOOK_CONFIG environment variable across multiple Docker Compose files to include an authentication token for the test wallet.
- Updated related tests to validate the presence of the authorization header in webhook requests.
…onfiguration

- Updated the webhook service to allow configuration from both inline JSON and an optional file/URL source.
- Introduced a refresh mechanism for source-backed configurations, ensuring updates are applied periodically.
- Enhanced documentation to reflect the new configuration options and their usage.
- Added tests to validate loading and merging of webhook configurations from different sources.
…or notifications

- Modified the webhook service to ensure that notifications are only sent when both `wallet` and `topic` query parameters are present.
- Updated related documentation to clarify the new requirement for webhook payloads.
- Refactored tests to validate the behavior when the `topic` parameter is omitted, ensuring no notifications are sent in such cases.
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.

1 participant