Skip to content

NEW PROVIDER: Sakura Cloud (SAKURACLOUD)#3086

Merged
tlimoncelli merged 4 commits intoStackExchange:mainfrom
ttkzw:sakuracloud
Aug 21, 2024
Merged

NEW PROVIDER: Sakura Cloud (SAKURACLOUD)#3086
tlimoncelli merged 4 commits intoStackExchange:mainfrom
ttkzw:sakuracloud

Conversation

@ttkzw
Copy link
Collaborator

@ttkzw ttkzw commented Aug 17, 2024

This PR adds support for Sakura Cloud, https://cloud.sakura.ad.jp/products/dns/ .

Passes all integration tests except for features not supported by the provider and tested in my own domain.

Copy link
Collaborator

@cafferata cafferata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tlimoncelli, could you also do a review?

{% endcode %}

The default TTL of Sakura Cloud is 3600, so it's recommended to set
`DefaultTTL(3600)`.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question: What happens within Sakura Cloud/DNSControl if you do not include this defaultTTL?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The DefaultTTL value set by the user is simply set to Sakura Cloud.
I realise that DefaultTTL(3600) is a meaningless setting for a user, so I am removing this description.

SAKURACLOUD: Deletion of description about default TTL (3600)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the explanation and the code adjustment.

// - exampleN, where N is a numerical character
func rejectifLabelHasExample(rc *models.RecordConfig) error {
return hasLabelExample(rc.GetLabel())
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Compliment: I wanted to compliment you on the extensive audit records! 👏🏻

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your compliment.

"TYPE": "SAKURACLOUD",
"access_token": "$SAKURACLOUD_ACCESS_TOKEN",
"access_token_secret": "$SAKURACLOUD_ACCESS_TOKEN_SECRET",
"domain": "$SAKURACLOUD_DOMAIN"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question: Have you sent @tlimoncelli credentials for the automated integration tests? Is that possible for Sakura Cloud? 🙏🏻

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have not done.
I tested my own domain name on my personal account on Sakura cloud.
I will therefore consider if it is possible.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I sent credentials for Sakura Cloud via stack overflow.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Initializer: newSakuracloudDsp,
RecordAuditor: AuditRecords,
}
providers.RegisterDomainServiceProviderType("SAKURACLOUD", fns, features)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change: The function RegisterMaintainer() needs to be included so that the OWNERS is generated successfully.

        const providerMaintainer = "@ttkzw"
	providers.RegisterMaintainer(providerName, providerMaintainer)

See also the other examples: https://github.com/search?q=repo%3AStackExchange%2Fdnscontrol+path%3A%2F%5Eproviders%5C%2F%2F+const+providerMaintainer&type=code

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added RegisterMaintainer().

SAKURACLOUD: Add RegisterMaintainer()

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! 🤩

@ttkzw ttkzw requested a review from cafferata August 21, 2024 11:10
@tlimoncelli
Copy link
Collaborator

Congrats! This PR is ready to merge!

I received your access token for automated testing. Please file a separate PR as described in https://docs.dnscontrol.org/developer-info/byo-secrets to add the provider to the automated testing.

@tlimoncelli tlimoncelli merged commit 864d452 into StackExchange:main Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants