Skip to content

Reapply "Revert union of Pools PR (#459)" - #500

Merged
Tobi Ogunbi (tobiogunbi) merged 2 commits into
masterfrom
tobi/reenableuofp
Jun 25, 2026
Merged

Tobi Ogunbi (tobiogunbi) merged 2 commits into
masterfrom
tobi/reenableuofp

Conversation

@tobiogunbi

@tobiogunbi Tobi Ogunbi (tobiogunbi) commented Jun 25, 2026 •

Copy link
Copy Markdown
Member

Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com

Please prefix all TypeScript pull-requests with [Typescript]

What

Checklist

  • Contains customer facing changes? Including API/behavior changes
  • Did you add sufficient unit test and/or integration test coverage for this PR?
    • If not, please explain why it is not required

References

JIRA:

Test & Review

Open questions / Follow-ups

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@tobiogunbi
Tobi Ogunbi (tobiogunbi) requested a review from a team as a code owner June 25, 2026 20:41
Copilot AI review requested due to automatic review settings June 25, 2026 20:41
@tobiogunbi
Tobi Ogunbi (tobiogunbi) requested a review from a team as a code owner June 25, 2026 20:41

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Schema Registry TypeScript REST client’s bearer-auth handling to support “union of pools” by allowing multiple identity pool IDs and making the identity pool header optional, while also ensuring bearer tokens are applied on the first request.

Changes:

  • Allow identityPoolId to be either a string or an array of strings, and only send the Confluent-Identity-Pool-Id header when it’s present.
  • Add tests verifying bearer-auth header behavior for single, multiple (comma-joined), and omitted identity pool IDs.
  • Ensure bearer tokens are initialized on the first request (not only on “token expired”).

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
schemaregistry/test/rest-service.spec.ts Adds Jest coverage for bearer-auth headers, including union-of-pools formatting.
schemaregistry/rest-service.ts Expands identityPoolId type and adjusts bearer token initialization behavior.
schemaregistry/oauth/abstract-oauth-client.ts Updates additional header construction to support optional/union identity pool IDs.
schemaregistry-examples/src/constants.ts Updates example guidance to mention comma-separated union-of-pools values.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread schemaregistry/rest-service.ts Resolved
Comment thread schemaregistry/rest-service.ts Resolved
@tobiogunbi
Tobi Ogunbi (tobiogunbi) enabled auto-merge (squash) June 25, 2026 21:14
@tobiogunbi
Tobi Ogunbi (tobiogunbi) merged commit 1970c10 into master Jun 25, 2026
2 checks passed
@tobiogunbi
Tobi Ogunbi (tobiogunbi) deleted the tobi/reenableuofp branch June 25, 2026 21:51
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.

3 participants