Skip to content

feat(bb-realtime): add Realtime.grantPublish() for external publishers - #367

Draft
pjkroker wants to merge 1 commit into
agentcore-rt/1-corefrom
agentcore-rt/2-realtime-grant
Draft

feat(bb-realtime): add Realtime.grantPublish() for external publishers#367
pjkroker wants to merge 1 commit into
agentcore-rt/1-corefrom
agentcore-rt/2-realtime-grant

Conversation

@pjkroker

Copy link
Copy Markdown
Contributor

Stacked PR 2 of 3 — base: agentcore-rt/1-core (#366). Layer above: the bb-agent migration.

What

Adds Realtime.grantPublish(grantee) (CDK) so an IAM principal other than the shared Blocks handler can publish to Realtime channels.

publish() needs execute-api:ManageConnections (postToConnection) and dynamodb:Query on the connections table — permissions that were previously only ever granted to the shared handler. grantPublish grants both to any principal and returns { callbackUrl, connectionsTableName } — the runtime config that principal must inject into its env to publish (not discoverable outside the handler). CDK-synth only; the runtime/mock build throws.

Additive, no consumer in this PR.

Validation

build + bb-realtime tests (72, incl. a new grantPublish synth test) + conditional-export parity pass. API.md regenerated. Changeset (minor).

Draft for review. Depends on #366.

@changeset-bot

changeset-bot Bot commented Aug 14, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: c50e51f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@aws-blocks/bb-realtime Minor
@aws-blocks/bb-agent Patch
@aws-blocks/blocks Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pjkroker
pjkroker force-pushed the agentcore-rt/2-realtime-grant branch from e27e08d to 15a63c0 Compare August 14, 2026 12:23
@pjkroker
pjkroker force-pushed the agentcore-rt/2-realtime-grant branch from 63f1fb3 to 4c92e19 Compare August 14, 2026 13:20
@pjkroker
pjkroker force-pushed the agentcore-rt/2-realtime-grant branch from 4c92e19 to c50e51f Compare August 14, 2026 13:32
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