-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support email plugin status sink #48044
Conversation
This pull request is automatically being deployed by Amplify Hosting (learn more). |
@bernardjkim See the table below for backport results.
|
ctx, cancel := context.WithTimeout(req.Context(), statusEmitTimeout) | ||
defer cancel() | ||
|
||
status := common.StatusFromStatusCode(resp.StatusCode) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry for the delay. A few months ago, we began adding dedicated status entries for plugins, where we include detailed error information like the error code, a human-readable message, and the original error itself. We’ve implemented this approach for Entra, GitLab, and others.
I suggest doing the same here. A simple "running/not running" status doesn’t provide meaningful insight, especially when running plugins in teleport cloud tenants where users don't have direct access to logs.
Examples of good information:
- can't dial to mailgun
- credentials invalid (expired)
- message rejected...
check
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, that is a good point. The generic "running / not running" status isn't all that helpful. I'll work on a follow up PR soon to improve the status entries.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tracking in #48604 so I don't forget
This PR enables the Email plugin to emit its plugin status.
This change is part of the work required to support Teleport-hosted Email plugins.