internetee / registry

TLD Management Software
Other
45 stars 19 forks source link

BSA gateway integration #2611

Open vohmar opened 10 months ago

vohmar commented 10 months ago

Create new reserved domains list for BSA protected domains. The table need multiple columns:

Restful JSON API request to BSA (api.bsagateway.co) all api requests except login require bearer token from the login. Token is valid for 30 minutes and there can be only one active token per user - new login creates new token and expires the old one if there were any still active.

regular queries to BSA API to update the list of BSA protected domains

all orders need to be saved in the BSA list and removed only when they are removed from BSA system (status: Queued for Release)

Once a day we need to send a domain report of unavailable domains back to BSA in zipped format together with file checksum. API - POST method

Domain names in the BSA reserved list can be simultaneously in other blocked and reserved lists or be registered

Operations:

For whois records blocked and disputed lists take priority - record is generated after those lists If domain name in BSA list is not registered nor is it in blocked or disputed list whois record is created with message

Domain Name: domain-name.example
>>> This name is not available for registration.
>>> This name has been blocked by a GlobalBlock service.
>>> Last update of WHOIS database: 2023-01-19T23:16:30Z <<<