Skip to content
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

ref(crons): Prefer DSN based auth #1541

Closed

Conversation

evanpurkhiser
Copy link
Member

@evanpurkhiser evanpurkhiser commented Mar 22, 2023

Updates the cron monitors run command to prefer using DSN auth, including spitting out a warning when DSN Auth is not used.

Requires #1543

@@ -2458,7 +2458,7 @@ pub enum MonitorCheckinStatus {
#[derive(Debug, Deserialize)]
pub struct MonitorCheckIn {
pub id: Uuid,
pub status: MonitorCheckinStatus,
pub status: Option<MonitorCheckinStatus>,
Copy link
Member Author

Choose a reason for hiding this comment

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

status is not returned when using DSN Auth.

@@ -0,0 +1,8 @@
```
$ unset SENTRY_AUTH_TOKEN
$ SENTRY_DSN=abcd sentry-cli monitors run foo-monitor -- cmd.exe /C echo 123
Copy link
Member Author

Choose a reason for hiding this comment

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

Uses slugs, requires #1540

$ unset SENTRY_AUTH_TOKEN
$ SENTRY_DSN=abcd sentry-cli monitors run foo-monitor -- cmd.exe /C echo 123
? success
WARN [..] In the future only DSN Auth will be supported for monitor checkins.
Copy link
Member Author

Choose a reason for hiding this comment

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

As mentioned in #1537, when using monitors slugs you CANNOT use Token based auth, as this does not give us context to which organization your monitor is part of.

The plan is to disallow token based authentication completely for monitor checks in the future.

@evanpurkhiser evanpurkhiser requested a review from a team March 22, 2023 00:11
@evanpurkhiser
Copy link
Member Author

Closed in favor of #1545

@evanpurkhiser evanpurkhiser deleted the evanpurkhiser/ref-crons-prefer-dsn-based-auth branch March 24, 2023 17:12
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