I was surprised when I needed to setup a DDNS to update DNS and found that it created a new record even though I didn’t give the API token create permission. I expected it to fail until I manually created the record first. First time using DigitalOcean’s DNS update service so perhaps I’m overlooking something or failing to understand what update permissions vs create permission provide. The description implies the create is needed to create a new record though it doesn’t provide exactly what a record is in this case: Create: Create domains and domain records
As a follow on, I was a bit surprised that I didn’t find a way to lock it down to just have the ability to update a single DNS record–something that would be requirement if I was using DigitalOcean in my day job for security reasons and probably used for automatic domain verification for TLS certs. For my use here it is fine to just limit update of existing records but it doens’t appear to work that way
I created a personal access token with just 2 scopes in it (copied below). Scopes are update and read.
Token type: Custom scope
Scopes: 2 scopes
Created: xxx
Last used: xxx
Expires: xxx
Read Accessdomain 1 scope Update Accessdomain 1 scope Total Custom Scopes
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.