Add AMS health probe to dnsfilter - #25071
Conversation
evalya-impact-summaryevalya impact analysis |
Parked — requires a paired crawler-sdk changeThis PR is parked because the
Adding an To unblock: add Leaving as draft for now. No action needed here until the crawler-sdk side lands. |
Add supported_auth_methods, supported_connection_methods (fixed base URL), and a health_probe so the account service can verify credentials when a user saves an account. A 2xx means the credentials are valid; a 401 means they are not.
5515013 to
759a022
Compare
Validation ReportAll 21 validations passed. Show details
|
Impact
What this does
Adds an AMS health probe to the dnsfilter integration's
assets/account_config.jsonso the account service can verify credentials when a user saves an account.The probe only runs when all three of
supported_auth_methods,supported_connection_methods, andhealth_probeare present. This change declares all three:supported_auth_methods— bearer token auth.supported_connection_methods— a fixed base URL ofhttps://api.dnsfilter.com.health_probe— aGETto/v1/traffic_reports/query_logswith anAccept: application/jsonheader. With the auth attached, a 2xx means the credentials are valid; a 401 means they are not.Backward compatibility
This integration previously had no
account_config.json; the credential fields were declared in crawler-sdk'saccount_config_fields(). The fieldkeyvalues here match exactly what the crawler reads, so existing accounts keep working unchanged.Testing
GET /v1/traffic_reports/query_logswith valid credentials must return a 2xx, and with invalid credentials a 401.🤖 Generated with Claude Code