Skip to content

Pass endpoint context to rotation notifications#5398

Merged
jmcrawford45 merged 3 commits intoNetflix:mainfrom
0xb8000:fix/5346-rotation-notification-endpoint-context
Apr 8, 2026
Merged

Pass endpoint context to rotation notifications#5398
jmcrawford45 merged 3 commits intoNetflix:mainfrom
0xb8000:fix/5346-rotation-notification-endpoint-context

Conversation

@0xb8000
Copy link
Copy Markdown

@0xb8000 0xb8000 commented Apr 6, 2026

Summary

  • Adds an optional endpoint parameter to send_rotation_notification() in messaging.py
  • Threads the endpoint through to send_default_notification() via **kwargs, making it available to notification plugins
  • Updates the call site in cli.py to pass the endpoint being rotated

This is fully backwards compatible — the endpoint parameter defaults to None, and existing notification plugins already accept **kwargs in their send() signature.

Closes #5346

Test plan

  • Existing tests pass unchanged (they call send_rotation_notification(cert) without endpoint)
  • Notification plugins that accept **kwargs can now access endpoint from kwargs when handling rotation events

🤖 Generated with Claude Code

Thread the endpoint parameter through send_rotation_notification()
and into send_default_notification() via **kwargs, so notification
plugins can include operational context (e.g. which load balancer
is being rotated) in their messages.

This is backwards compatible — the endpoint parameter is optional
and existing plugins that don't use it will simply ignore it via
their **kwargs signature.

Closes Netflix#5346

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Verifies that send_rotation_notification passes the endpoint
kwarg through to send_default_notification.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jmcrawford45 jmcrawford45 enabled auto-merge April 7, 2026 15:49
@coveralls
Copy link
Copy Markdown

coveralls commented Apr 7, 2026

Coverage Status

Coverage is 60.861%0xb8000:fix/5346-rotation-notification-endpoint-context into Netflix:main. No base build found for Netflix:main.

@jmcrawford45 jmcrawford45 merged commit 6766dca into Netflix:main Apr 8, 2026
9 checks 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.

Rotation notifications don't pass endpoint context to notification plugins

4 participants