feat: support fc_ API keys in notification client#202
Conversation
The notification WebSocket client now handles fc_ format API keys (e.g., fc_keyId_secret) by sending only the api_key query parameter. The apiKeyId is optional — when omitted for fc_ keys, the tenant API parses the key ID from the fc_ prefix format. This aligns with service-tenant-api commit ab60ef4 which added fc_ key support to the /notifications endpoint. Backward compatible: legacy api_key + api_key_id still works.
|
Caution Review failedPull request was closed or merged during review No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe change updates the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
apiKeyIdoptional inNotificationClientAuthOptionsApiKeyapiKeyIdis not provided (fc_ key format), only sendapi_keyquery param to the WebSocket endpointFlowcoreClientalready handles fc_ keys by parsing keyId from the prefix — this aligns the notification clientContext
The
service-tenant-api/notificationsendpoint (commitab60ef4) already supportsfc_format API keys with just theapi_keyquery parameter. The SDK notification client was still unconditionally requiring and sendingapi_key_id, causing WebSocket connections to fail forfc_keys.Changes
src/common/notification-client.ts:apiKeyIdis now optional, conditionally included in query paramsBackward Compatible
Legacy
api_key+api_key_idformat continues to work unchanged.🤖 Generated with Claude Code
Summary by CodeRabbit