Skip to content

Verifying your domain

Domain verification is a critical security step that proves you own and control the domains you want to monitor with Appwarden. Domains are verified automatically when the Appwarden middleware successfully sends heartbeats to the Appwarden API.

This guide provides comprehensive instructions for verifying your domains through middleware installation, checking verification status, and troubleshooting common issues.

When you install @appwarden/middleware on an application that is served from your domain, Appwarden can verify ownership based on live traffic. Once the middleware is deployed and sends a successful heartbeat, Appwarden automatically marks that domain as verified in the dashboard.

To set up domain verification via middleware, follow the integration guides:

These guides walk through installing @appwarden/middleware, configuring your API token, and deploying the middleware. Once the first heartbeat succeeds, your domain will be automatically verified.

Before Appwarden can monitor and protect your domains, you must verify ownership through middleware heartbeats. This verification process:

  • Prevents unauthorized monitoring: Ensures only domain administrators can set up monitoring
  • Enables quarantine functionality: Allows Appwarden to quarantine domains during security incidents
  • Protects against abuse: Prevents malicious actors from registering domains they don’t own

Install the @appwarden/middleware package on your application. Follow the appropriate integration guide for your platform:

Configure the middleware with your Appwarden API token. This allows the middleware to send heartbeats to the Appwarden API.

Deploy your application with the middleware installed. Once the middleware sends its first successful heartbeat, your domain will be automatically marked as verified.

In the Appwarden dashboard, navigate to Settings > Monitoring. The Domain Verification card displays all domains from your configuration files along with their verification status.

The table shows:

  • Domain: Domain name from your configuration files
  • Status: Current verification status
    • Green checkmark: Domain is verified
    • Orange pulsing circle: Verification is pending
Domain verification settings in the Appwarden dashboard
Domain verification settings in the Appwarden dashboard

Once your middleware is deployed, Appwarden will automatically detect and verify your domain when it receives the first successful heartbeat.

After deploying your application with the middleware:

  1. Navigate to Settings > Monitoring in the Appwarden dashboard
  2. Check the Domain Verification card for your domain’s status
  3. Look for the status indicator to change from an orange pulsing circle to a green checkmark
  4. This typically happens within minutes of the first successful middleware heartbeat

If you’re having trouble, join the community and ping us for assistance. We’d be happy to check your setup.

If your domain remains unverified after following the steps above, work through these troubleshooting steps:

Navigate to Settings > Monitoring in the Appwarden dashboard. The Domain Verification card displays all your domains with their current verification status:

  • Green checkmark: Domain is verified
  • Orange pulsing circle: Domain verification is pending

Ensure the @appwarden/middleware package is properly installed in your application:

  • Check your package.json to confirm the package is listed
  • Verify the middleware is imported and configured in your application
  • Confirm your API token is correctly set in your environment variables

Verify API token:

  • Ensure your API token is valid and not expired
  • Check that the token has the correct permissions
  • Confirm the token is properly set in your deployment environment

Check middleware setup:

Check application deployment:

  • Confirm your application with the middleware is successfully deployed
  • Verify the deployed version includes the middleware changes
  • Check deployment logs for any errors related to the middleware

Test middleware functionality:

  • Access your application through its domain to trigger the middleware
  • Check your application logs for middleware heartbeat activity
  • Look for any error messages related to Appwarden middleware

If your domain doesn’t appear in the Domain Verification card:

  • Ensure your domain configuration repository is connected
  • Verify the domain is listed in your .appwarden/domains/*.yml configuration files
  • Check that your configuration changes have been merged to the main branch

Return to Settings > Monitoring in the Appwarden dashboard. If your middleware is correctly configured and has sent a successful heartbeat, the domain status will automatically update to show a green checkmark.

If your domain is still marked as pending after confirming your middleware is correctly installed and deployed, please reach out to us on Discord for further assistance.

Once your domains are verified:

  1. Test quarantine functionality: Run /quarantine test in Discord to ensure everything works
  2. Configure monitoring: Set up domain configuration files
  3. Review incident management: Learn about incident detection and response
  4. Set up notifications: Configure team alerts for security incidents