接入域名 DNS 绑定接口并修复历史 MySQL 排序规则兼容
This commit is contained in:
1 parent
45798c5ecf
commit
c80530f60e
12 files changed
+370
-8
No files matched your search
@@ -145,13 +145,24 @@ func checkDomainDNSConstraints(t *testing.T, db *sql.DB, driver string) {
|
||||
|
||||
func TestMySQLDomainDNSAccountInterruptedMigration(t *testing.T) {
|
||||
f := startRealMySQL(t)
|
||||
for _, boundary := range []string{"before_create", "after_create", "after_index", "after_domain_fk", "after_account_fk", "with_binding", "bad_column", "bad_index", "bad_foreign_key", "extra_foreign_key"} {
|
||||
for _, boundary := range []string{"before_create", "after_create", "after_index", "after_domain_fk", "after_account_fk", "with_binding", "changed_schema_default", "bad_column", "bad_column_collation", "bad_index", "bad_foreign_key", "extra_foreign_key"} {
|
||||
t.Run(boundary, func(t *testing.T) {
|
||||
db := f.database(t)
|
||||
mysqlPrepareVersion(t, db.DB, 27)
|
||||
statements := mysqlDeploymentStatements(t, 28)
|
||||
if boundary == "changed_schema_default" {
|
||||
var name string
|
||||
if err := db.DB.QueryRowContext(t.Context(), `SELECT DATABASE()`).Scan(&name); err != nil || !mysqlCollationIdentifier.MatchString(name) {
|
||||
t.Fatal("测试数据库标识无效", err)
|
||||
}
|
||||
mysqlDeploymentExec(t, db.DB, "ALTER DATABASE `"+name+"` CHARACTER SET utf8mb4 COLLATE utf8mb4_bin")
|
||||
}
|
||||
create, _, err := mysqlDomainDNSCreateStatement(t.Context(), db.DB, statements[0])
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if boundary != "before_create" {
|
||||
mysqlDeploymentExec(t, db.DB, statements[0])
|
||||
mysqlDeploymentExec(t, db.DB, create)
|
||||
}
|
||||
if boundary == "after_index" || boundary == "after_domain_fk" || boundary == "after_account_fk" || boundary == "with_binding" {
|
||||
mysqlDeploymentExec(t, db.DB, statements[1])
|
||||
@@ -164,6 +175,8 @@ func TestMySQLDomainDNSAccountInterruptedMigration(t *testing.T) {
|
||||
}
|
||||
conflict := true
|
||||
switch boundary {
|
||||
case "bad_column_collation":
|
||||
mysqlDeploymentExec(t, db.DB, `ALTER TABLE domain_dns_accounts MODIFY COLUMN domain_id VARCHAR(36) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL`)
|
||||
case "bad_column":
|
||||
mysqlDeploymentExec(t, db.DB, `ALTER TABLE domain_dns_accounts MODIFY COLUMN id VARCHAR(36) NULL`)
|
||||
case "bad_index":
|
||||
|
||||
@@ -50,10 +50,11 @@ type mysqlDeploymentColumn struct {
|
||||
}
|
||||
|
||||
type mysqlDeploymentShape struct {
|
||||
Table string
|
||||
Collation string
|
||||
Columns []mysqlDeploymentColumn
|
||||
Indexes []string
|
||||
Table string
|
||||
Collation string
|
||||
Columns []mysqlDeploymentColumn
|
||||
Indexes []string
|
||||
ColumnCollations map[string]string
|
||||
}
|
||||
|
||||
var (
|
||||
@@ -151,7 +152,11 @@ func validateMySQLDeploymentShape(ctx context.Context, db *sql.DB, expected mysq
|
||||
}
|
||||
column.Default = strings.TrimSuffix(strings.ToLower(defaultValue.String), "()")
|
||||
column.HasDefault = defaultValue.Valid
|
||||
if columnCollation.Valid && columnCollation.String != tableCollation {
|
||||
expectedColumnCollation := tableCollation
|
||||
if override := expected.ColumnCollations[column.Name]; override != "" {
|
||||
expectedColumnCollation = override
|
||||
}
|
||||
if columnCollation.Valid && columnCollation.String != expectedColumnCollation {
|
||||
rows.Close()
|
||||
return fmt.Errorf("部署迁移表字段排序规则不匹配:%s.%s", expected.Table, column.Name)
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ import (
|
||||
"context"
|
||||
"database/sql"
|
||||
"fmt"
|
||||
"regexp"
|
||||
"strings"
|
||||
)
|
||||
|
||||
@@ -16,7 +17,12 @@ func applyMySQLDomainDNSMigration(ctx context.Context, db *sql.DB, version int,
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if _, err := db.ExecContext(ctx, strings.Replace(statements[0], "CREATE TABLE ", "CREATE TABLE IF NOT EXISTS ", 1)); err != nil {
|
||||
create, collation, err := mysqlDomainDNSCreateStatement(ctx, db, statements[0])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
shape.ColumnCollations = map[string]string{"domain_id": collation}
|
||||
if _, err := db.ExecContext(ctx, strings.Replace(create, "CREATE TABLE ", "CREATE TABLE IF NOT EXISTS ", 1)); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := validateMySQLDeploymentShape(ctx, db, shape); err != nil {
|
||||
@@ -65,6 +71,27 @@ func applyMySQLDomainDNSMigration(ctx context.Context, db *sql.DB, version int,
|
||||
return err
|
||||
}
|
||||
|
||||
var mysqlCollationIdentifier = regexp.MustCompile(`^[a-zA-Z0-9_]+$`)
|
||||
|
||||
// 历史域名主键继承建库时的排序规则,不能假定它与后来的项目标识相同。
|
||||
// 仅让新外键列匹配父列;不修改父表、数据库默认值或已有冲突表。
|
||||
func mysqlDomainDNSCreateStatement(ctx context.Context, db *sql.DB, statement string) (string, string, error) {
|
||||
var columnType, charset, collation string
|
||||
if err := db.QueryRowContext(ctx, `SELECT column_type, character_set_name, collation_name
|
||||
FROM information_schema.columns WHERE table_schema = DATABASE() AND table_name = 'domains' AND column_name = 'id'`).Scan(&columnType, &charset, &collation); err != nil {
|
||||
return "", "", err
|
||||
}
|
||||
if !strings.EqualFold(columnType, "varchar(36)") || !mysqlCollationIdentifier.MatchString(charset) || !mysqlCollationIdentifier.MatchString(collation) {
|
||||
return "", "", fmt.Errorf("历史域名主键字符定义不受支持,拒绝修改现有结构")
|
||||
}
|
||||
const original = "domain_id VARCHAR(36) NOT NULL"
|
||||
if strings.Count(statement, original) != 1 {
|
||||
return "", "", fmt.Errorf("域名 DNS 绑定迁移主键定义不完整")
|
||||
}
|
||||
definition := "domain_id VARCHAR(36) CHARACTER SET " + charset + " COLLATE " + collation + " NOT NULL"
|
||||
return strings.Replace(statement, original, definition, 1), collation, nil
|
||||
}
|
||||
|
||||
func validateMySQLDomainDNSForeignKeys(ctx context.Context, db *sql.DB) (map[string]bool, error) {
|
||||
rows, err := db.QueryContext(ctx, `SELECT r.constraint_name, r.delete_rule, r.update_rule,
|
||||
k.column_name, k.referenced_table_schema, k.referenced_table_name, k.referenced_column_name,
|
||||
|
||||
@@ -0,0 +1,83 @@
|
||||
package httpapi
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"net/http"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
|
||||
"git.pcux.cn/xuans/Scert/backend/internal/domain"
|
||||
"git.pcux.cn/xuans/Scert/backend/internal/repository"
|
||||
)
|
||||
|
||||
func (s *Server) domainDNSRepository(c *gin.Context) (repository.DomainDNSAccountRepository, bool) {
|
||||
repo, ok := s.projectMembers.(repository.DomainDNSAccountRepository)
|
||||
if !ok {
|
||||
s.writeError(c, http.StatusServiceUnavailable, "域名 DNS 账户绑定服务尚未就绪", nil)
|
||||
return nil, false
|
||||
}
|
||||
if !domain.ValidProjectID(c.Param("id")) || c.Request.URL.RawQuery != "" {
|
||||
s.writeError(c, http.StatusBadRequest, "域名 DNS 账户绑定参数无效", nil)
|
||||
return nil, false
|
||||
}
|
||||
return repo, true
|
||||
}
|
||||
|
||||
func (s *Server) writeDomainDNSAccountError(c *gin.Context, err error) {
|
||||
switch {
|
||||
case errors.Is(err, repository.ErrProjectAccessDenied):
|
||||
s.writeError(c, http.StatusForbidden, "无权操作此域名的 DNS 账户绑定", nil)
|
||||
case errors.Is(err, repository.ErrDNSBindingConflict), errors.Is(err, repository.ErrDNSAccountConflict):
|
||||
s.writeError(c, http.StatusConflict, "域名绑定或 DNS 账户已变更,请刷新后重试", nil)
|
||||
case errors.Is(err, repository.ErrDNSBindingBusy):
|
||||
s.writeError(c, http.StatusConflict, "域名存在未结束的任务,暂不能变更 DNS 账户", nil)
|
||||
case errors.Is(err, repository.ErrDNSBindingInvalid):
|
||||
s.writeError(c, http.StatusUnprocessableEntity, "域名验证方式或 DNS 账户状态不允许绑定", nil)
|
||||
default:
|
||||
// 驱动错误可能含内部标识;只返回固定提示,不记录原始错误。
|
||||
s.writeError(c, http.StatusServiceUnavailable, "保存或读取 DNS 账户绑定失败,请刷新后核对", nil)
|
||||
}
|
||||
}
|
||||
|
||||
func (s *Server) getDomainDNSAccount(c *gin.Context) {
|
||||
repo, ok := s.domainDNSRepository(c)
|
||||
if !ok {
|
||||
return
|
||||
}
|
||||
item, err := repo.GetDomainDNSAccountBinding(c.Request.Context(), c.GetString(authenticatedActorKey), c.Param("id"))
|
||||
if err != nil {
|
||||
s.writeDomainDNSAccountError(c, err)
|
||||
return
|
||||
}
|
||||
c.JSON(http.StatusOK, item)
|
||||
}
|
||||
|
||||
func (s *Server) setDomainDNSAccount(c *gin.Context) {
|
||||
repo, ok := s.domainDNSRepository(c)
|
||||
if !ok {
|
||||
return
|
||||
}
|
||||
var input struct {
|
||||
AccountID *string `json:"dns_account_id"`
|
||||
ExpectedBindingID *string `json:"expected_binding_id"`
|
||||
AccountRevision *int64 `json:"account_revision"`
|
||||
}
|
||||
// 三个字段必须显式提供,禁止遗漏字段或 null 被解释成解除已有绑定。
|
||||
if bindJSON(c, &input, jsonRequestBodyLimit) != nil || input.AccountID == nil || input.ExpectedBindingID == nil || input.AccountRevision == nil {
|
||||
s.writeError(c, http.StatusBadRequest, "请明确提供 DNS 账户、当前绑定标识和账户版本", nil)
|
||||
return
|
||||
}
|
||||
accountID, expectedID, revision := *input.AccountID, *input.ExpectedBindingID, *input.AccountRevision
|
||||
if (expectedID != "" && !domain.ValidProjectID(expectedID)) ||
|
||||
(accountID == "" && revision != 0) ||
|
||||
(accountID != "" && (!domain.ValidProjectID(accountID) || revision < 1 || revision > 2147483647)) {
|
||||
s.writeError(c, http.StatusBadRequest, "DNS 账户绑定标识或版本无效", nil)
|
||||
return
|
||||
}
|
||||
item, err := repo.SetDomainDNSAccountBinding(c.Request.Context(), c.GetString(authenticatedActorKey), c.Param("id"), accountID, expectedID, revision)
|
||||
if err != nil {
|
||||
s.writeDomainDNSAccountError(c, err)
|
||||
return
|
||||
}
|
||||
c.JSON(http.StatusOK, item)
|
||||
}
|
||||
@@ -0,0 +1,188 @@
|
||||
package httpapi
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"net/http/httptest"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"git.pcux.cn/xuans/Scert/backend/internal/domain"
|
||||
)
|
||||
|
||||
func newDomainDNSAPIFixture(t *testing.T) (projectMemberAPIFixture, domain.DNSAccount) {
|
||||
t.Helper()
|
||||
f, _ := newProjectResourceAPIFixture(t)
|
||||
item, err := f.members.CreateDNSAccount(t.Context(), "manager", domain.DNSAccount{
|
||||
ID: "account-a", ProjectID: "project-a", Name: "项目账户", Provider: "cloudflare", CredentialRef: "secret://dns/fixture-sensitive-token",
|
||||
})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
item, err = f.members.RecordDNSAccountVerification(t.Context(), "manager", item.ID, item.Revision, true)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
return f, item
|
||||
}
|
||||
|
||||
func domainDNSBody(accountID, expectedID string, revision int64) string {
|
||||
return fmt.Sprintf(`{"dns_account_id":%q,"expected_binding_id":%q,"account_revision":%d}`, accountID, expectedID, revision)
|
||||
}
|
||||
|
||||
func domainDNSRequest(t *testing.T, f projectMemberAPIFixture, actor, method, path, body string, status int) domain.DNSAccountBinding {
|
||||
t.Helper()
|
||||
response := serveUserRequest(f.server, f.cookies[actor], method, "/api/v1/domains/"+path+"/dns-account", body)
|
||||
if response.Code != status {
|
||||
t.Fatalf("域名 DNS 绑定响应错误:%s %s %s,实际 %d,期望 %d,%s", actor, method, path, response.Code, status, response.Body.String())
|
||||
}
|
||||
if response.Header().Get("Cache-Control") != "private, no-store" || response.Header().Get("Vary") != "Cookie" {
|
||||
t.Fatal("绑定响应缺少身份缓存隔离")
|
||||
}
|
||||
for _, secret := range []string{"secret://", "credential_ref", "fixture-sensitive-token", "internal-sensitive-error"} {
|
||||
if strings.Contains(response.Body.String(), secret) {
|
||||
t.Fatal("绑定响应泄露秘密或内部错误")
|
||||
}
|
||||
}
|
||||
var binding domain.DNSAccountBinding
|
||||
if status == http.StatusOK {
|
||||
if err := json.Unmarshal(response.Body.Bytes(), &binding); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
return binding
|
||||
}
|
||||
|
||||
func TestDomainDNSAccountAPILifecycle(t *testing.T) {
|
||||
f, account := newDomainDNSAPIFixture(t)
|
||||
read := domainDNSRequest(t, f, "viewer", http.MethodGet, "domain-a", "", http.StatusOK)
|
||||
if read.ID != "" || read.DomainID != "domain-a" || read.ProjectID != "project-a" {
|
||||
t.Fatal("未绑定时未返回域名归属")
|
||||
}
|
||||
body := domainDNSBody(account.ID, "", account.Revision)
|
||||
bound := domainDNSRequest(t, f, "manager", http.MethodPut, "domain-a", body, http.StatusOK)
|
||||
if bound.ID == "" || bound.DNSAccountID != account.ID || bound.UpdatedAt.IsZero() {
|
||||
t.Fatal("绑定未返回版本令牌")
|
||||
}
|
||||
read = domainDNSRequest(t, f, "viewer", http.MethodGet, "domain-a", "", http.StatusOK)
|
||||
if read.ID != bound.ID || read.DNSAccountID != account.ID {
|
||||
t.Fatal("读取与实际绑定不符")
|
||||
}
|
||||
for _, stale := range []string{body, domainDNSBody(account.ID, bound.ID, 1), domainDNSBody("", "", 0)} {
|
||||
domainDNSRequest(t, f, "manager", http.MethodPut, "domain-a", stale, http.StatusConflict)
|
||||
}
|
||||
cleared := domainDNSRequest(t, f, "manager", http.MethodPut, "domain-a", domainDNSBody("", bound.ID, 0), http.StatusOK)
|
||||
if cleared.ID != "" || cleared.DNSAccountID != "" {
|
||||
t.Fatal("解除后仍返回绑定")
|
||||
}
|
||||
rebound := domainDNSRequest(t, f, "manager", http.MethodPut, "domain-a", body, http.StatusOK)
|
||||
if rebound.ID == bound.ID {
|
||||
t.Fatal("重绑重复使用旧令牌")
|
||||
}
|
||||
domainDNSRequest(t, f, "manager", http.MethodPut, "domain-a", domainDNSBody("", bound.ID, 0), http.StatusConflict)
|
||||
var count int
|
||||
if err := f.db.QueryRow(`SELECT COUNT(*) FROM audit_logs WHERE action='domain.dns_account' AND status='success' AND operator_id='manager'`).Scan(&count); err != nil || count != 3 {
|
||||
t.Fatal("绑定成功审计数不符", count, err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestDomainDNSAccountAPIAuthorization(t *testing.T) {
|
||||
f, account := newDomainDNSAPIFixture(t)
|
||||
body := domainDNSBody(account.ID, "", account.Revision)
|
||||
for _, actor := range []string{"anonymous", "viewer", "global-admin", "target"} {
|
||||
status := http.StatusForbidden
|
||||
if actor == "anonymous" {
|
||||
status = http.StatusUnauthorized
|
||||
}
|
||||
domainDNSRequest(t, f, actor, http.MethodPut, "domain-a", body, status)
|
||||
if actor != "viewer" {
|
||||
domainDNSRequest(t, f, actor, http.MethodGet, "domain-a", "", status)
|
||||
}
|
||||
}
|
||||
for _, id := range []string{"domain-b", "missing-domain"} {
|
||||
domainDNSRequest(t, f, "manager", http.MethodGet, id, "", http.StatusForbidden)
|
||||
domainDNSRequest(t, f, "manager", http.MethodPut, id, body, http.StatusForbidden)
|
||||
}
|
||||
// 超级管理员也不能将同一账户绑定到另一个项目。
|
||||
domainDNSRequest(t, f, "primary-super-admin", http.MethodPut, "domain-b", body, http.StatusForbidden)
|
||||
if err := f.members.RevokeProjectRole(t.Context(), "primary-super-admin", "project-a", "manager", domain.ProjectRoleAdmin); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
domainDNSRequest(t, f, "manager", http.MethodGet, "domain-a", "", http.StatusForbidden)
|
||||
domainDNSRequest(t, f, "manager", http.MethodPut, "domain-a", body, http.StatusForbidden)
|
||||
}
|
||||
|
||||
func TestDomainDNSAccountAPIInputAndOrigin(t *testing.T) {
|
||||
f, account := newDomainDNSAPIFixture(t)
|
||||
for _, body := range []string{
|
||||
`{}`, `null`, `{"dns_account_id":null,"expected_binding_id":"","account_revision":0}`,
|
||||
`{"dns_account_id":"","expected_binding_id":null,"account_revision":0}`,
|
||||
`{"dns_account_id":"","expected_binding_id":"","account_revision":null}`,
|
||||
domainDNSBody("", "", 1), domainDNSBody(account.ID, "", 0), domainDNSBody(account.ID, "", 2147483648),
|
||||
domainDNSBody(account.ID, "invalid/id", account.Revision),
|
||||
`{"dns_account_id":"","expected_binding_id":"","account_revision":0,"actor_id":"primary-super-admin"}`,
|
||||
`{"dns_account_id":"","expected_binding_id":"","account_revision":0} {}`,
|
||||
} {
|
||||
domainDNSRequest(t, f, "manager", http.MethodPut, "domain-a", body, http.StatusBadRequest)
|
||||
}
|
||||
for _, method := range []string{http.MethodGet, http.MethodPut} {
|
||||
response := serveUserRequest(f.server, f.cookies["manager"], method, "/api/v1/domains/domain-a/dns-account?project_id=project-b", domainDNSBody(account.ID, "", account.Revision))
|
||||
if response.Code != http.StatusBadRequest {
|
||||
t.Fatal("查询参数未拒绝", response.Code)
|
||||
}
|
||||
}
|
||||
request := httptest.NewRequest(http.MethodPut, "/api/v1/domains/domain-a/dns-account", strings.NewReader(domainDNSBody(account.ID, "", account.Revision)))
|
||||
request.AddCookie(f.cookies["manager"])
|
||||
request.Header.Set("Origin", "https://untrusted.example.test")
|
||||
response := httptest.NewRecorder()
|
||||
f.server.Handler().ServeHTTP(response, request)
|
||||
if response.Code != http.StatusForbidden {
|
||||
t.Fatal("跨源写入未拒绝", response.Code)
|
||||
}
|
||||
binding := domainDNSRequest(t, f, "manager", http.MethodGet, "domain-a", "", http.StatusOK)
|
||||
if binding.ID != "" {
|
||||
t.Fatal("非法请求改变绑定")
|
||||
}
|
||||
}
|
||||
|
||||
func TestDomainDNSAccountAPIDependencyAndState(t *testing.T) {
|
||||
for _, failure := range []string{"unverified", "disabled", "http_challenge", "active_task", "audit", "repository"} {
|
||||
t.Run(failure, func(t *testing.T) {
|
||||
f, account := newDomainDNSAPIFixture(t)
|
||||
status := http.StatusUnprocessableEntity
|
||||
switch failure {
|
||||
case "unverified":
|
||||
if _, err := f.db.Exec(`UPDATE dns_accounts SET verification_state='unverified'`); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
case "disabled":
|
||||
if _, err := f.db.Exec(`UPDATE dns_accounts SET status='disabled'`); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
case "http_challenge":
|
||||
if _, err := f.db.Exec(`UPDATE domains SET challenge_type='http-01' WHERE id='domain-a'`); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
case "active_task":
|
||||
if _, err := f.db.Exec(`INSERT INTO tasks (id,domain_id,task_type,status,message) VALUES ('active-task','domain-a','certificate_issue','running','')`); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
status = http.StatusConflict
|
||||
case "audit":
|
||||
if _, err := f.db.Exec(`CREATE TRIGGER reject_binding_audit BEFORE INSERT ON audit_logs WHEN NEW.action='domain.dns_account' BEGIN SELECT RAISE(ABORT,'internal-sensitive-error'); END`); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
status = http.StatusServiceUnavailable
|
||||
case "repository":
|
||||
f.server.projectMembers = nil
|
||||
status = http.StatusServiceUnavailable
|
||||
}
|
||||
domainDNSRequest(t, f, "manager", http.MethodPut, "domain-a", domainDNSBody(account.ID, "", account.Revision), status)
|
||||
binding, err := f.members.GetDomainDNSAccountBinding(t.Context(), "manager", "domain-a")
|
||||
if err != nil || binding.ID != "" {
|
||||
t.Fatal("失败请求改变绑定", err)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -13,6 +13,8 @@ import (
|
||||
func (s *Server) registerProjectResourceRoutes() {
|
||||
api := s.router.Group("/api/v1", privateProjectResponse, s.requireAuthenticated)
|
||||
api.GET("/domains", s.listDomains)
|
||||
api.GET("/domains/:id/dns-account", s.getDomainDNSAccount)
|
||||
api.PUT("/domains/:id/dns-account", s.requireSameOrigin, s.setDomainDNSAccount)
|
||||
api.GET("/dns/accounts", s.listDNSAccounts)
|
||||
api.GET("/dns/accounts/:id", s.getManagedDNSAccount)
|
||||
api.POST("/dns/accounts", s.requireSameOrigin, s.createManagedDNSAccount)
|
||||
|
||||
Reference in new issue
Block a user