Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A a11y-webring.club
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 4
    • Issues 4
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Byte Blaze
  • a11y-webring.club
  • Merge requests
  • !40

Add verification functions

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Dave Greene requested to merge github/fork/davepgreene/add-verification-function into main Jan 22, 2023
  • Overview 0
  • Commits 4
  • Pipelines 1
  • Changes 7

This PR adds two different implementations of a way to verify members of the webring.

The first, verify.mjs simply makes sure that the listed URL only returns a response in the 2xx range. This is a quick spot check to make sure that the site owner doesn't redirect to a different location. The second, verifyDNS.mjs is slightly more complicated. It verifies, using DNS TXT records, whether a site owner controls their own domain by requiring a TXT record on the listed hostname. Both of these functions use Netlify's scheduled functions feature. verify runs daily and verifyDNS runs weekly. Obviously that timing can be changed by updating the value in netlify.toml.

Neither of these implementations solves the question as to what to do if one of these functions actually encounters that scenario. I don't know much about Netlify or whether it has logging or alerting functionality. Hopefully this helps in the discussion in #33 (closed).

Edited Mar 27, 2023 by Byte Blaze
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/davepgreene/add-verification-function