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

Document the handling of confirmation links #436

Closed
cuu508 opened this issue Sep 30, 2020 · 4 comments
Closed

Document the handling of confirmation links #436

cuu508 opened this issue Sep 30, 2020 · 4 comments

Comments

@cuu508
Copy link
Member

cuu508 commented Sep 30, 2020

When a ping body contains the word "confirm", Healthchecks assumes it might contain a confirmation link. To draw user's attention to it, it shows a badge in the dashboard:

image

The badge is not explained anywhere on the site or in the documentation.

@cuu508 cuu508 closed this as completed in 71d7b46 Oct 14, 2020
@cuu508
Copy link
Member Author

cuu508 commented Oct 14, 2020

Added an informative tooltip:

image

@anxodio
Copy link

anxodio commented May 21, 2024

Hi! Why it's important to show a badge if the body contains the word "confirm"? What's the intention? Thank you :)

@cuu508
Copy link
Member Author

cuu508 commented May 22, 2024

@anxodio the specific use case I had in mind was AWS SNS and webhook subscriptions.

In AWS SNS you can create a Topic and create Subscriptions for that topic. Among the supported subscription types is HTTP and HTTTPS: when a message is posted to the topic, AWS SNS will send an HTTP(S) request to the nominated URL.

When you first create a HTTP(S) subscription, AWS SNS will first send a special request to the URL which contains a confirmation link. Once the confirmation link is clicked, the subscription is active. The message payload looks like this:

{
  "Type" : "SubscriptionConfirmation",
  "MessageId" : "a75c4bbe-2925-4108-82b4-a9a7c4c72985",
  "Token" : "xxxx",
  "TopicArn" : "arn:aws:sns:eu-central-1:xxxx:Demo-Topic",
  "Message" : "You have chosen to subscribe to the topic arn:aws:sns:eu-central-1:xxxx:Demo-Topic.\nTo confirm the subscription, visit the SubscribeURL included in this message.",
  "SubscribeURL" : "https://sns.eu-central-1.amazonaws.com/?Action=ConfirmSubscription&TopicArn=arn:aws:sns:eu-central-1:xxxx:Demo-Topic&Token=xxxx",
  "Timestamp" : "2024-05-22T11:50:05.094Z",
  "SignatureVersion" : "1",
  "Signature" : "xxxx",
  "SigningCertURL" : "https://sns.eu-central-1.amazonaws.com/SimpleNotificationService-60eadc530605d63b8e62a523676ef735.pem"
}

The "confirmation link" badge is meant to draw user's attention to the fact that the ping body contains the word "confirm" and so perhaps there's a confirmation link in there, that needs to be acted upon.

@anxodio
Copy link

anxodio commented May 22, 2024

Thank you for the explanation @cuu508 :)

We have some ping bodies that contain the word confirm but it's not a confirmation link, but knowing that it is not important, we can simply ignore the badge

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

No branches or pull requests

2 participants