feat: add safe multi-account routing and prepare public release

This commit is contained in:
Meghdad committed 2026-07-13 06:22:34 +03:30
1 parent eb115daf3b
commit e925ade94a
71 files changed
+2906 -120

No files matched your search

+1
View File
@@ -0,0 +1 @@
* @MeghdadFadaee
+50
View File
@@ -0,0 +1,50 @@
name: Bug report
description: Report a reproducible DomainOps defect without including secrets.
title: "[Bug]: "
labels:
- bug
body:
- type: markdown
attributes:
value: |
Never include API tokens, vault files, vault passwords, private keys, certificates, database files, or sensitive production-domain data. Use the private security advisory link for vulnerabilities.
- type: input
id: version
attributes:
label: DomainOps version
description: Run `domainops version` and paste only the version, commit, and build date.
placeholder: "DomainOps 0.1.0 (commit, date)"
validations:
required: true
- type: dropdown
id: os
attributes:
label: Operating system
options:
- Linux amd64
- Linux arm64
- macOS amd64
- macOS arm64
- Other unsupported platform
validations:
required: true
- type: textarea
id: behavior
attributes:
label: What happened?
description: Include the expected result, actual result, and minimal reproduction with domains anonymized.
validations:
required: true
- type: textarea
id: logs
attributes:
label: Sanitized output
description: Remove tokens, account IDs, credential IDs, domains, IPs, certificate material, filesystem usernames, and vault/database contents.
render: shell
- type: checkboxes
id: safety
attributes:
label: Sensitive-data confirmation
options:
- label: I removed all credentials, private material, and sensitive infrastructure identifiers.
required: true
+5
View File
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Security vulnerability
url: https://github.com/MeghdadFadaee/domainops/security/advisories/new
about: Report vulnerabilities privately. Do not disclose tokens, private keys, or exploit details in a public issue.
@@ -0,0 +1,31 @@
name: Feature request
description: Propose an operator workflow or provider capability.
title: "[Feature]: "
labels:
- enhancement
body:
- type: textarea
id: problem
attributes:
label: Operator problem
description: Describe the workflow or risk this feature should address.
validations:
required: true
- type: textarea
id: proposal
attributes:
label: Proposed behavior
description: Explain the desired TUI/CLI behavior, provider scope, and safety expectations.
validations:
required: true
- type: textarea
id: alternatives
attributes:
label: Alternatives considered
- type: checkboxes
id: safety
attributes:
label: Sensitive-data confirmation
options:
- label: This request contains no credentials, private keys, or sensitive production-domain data.
required: true
+16
View File
@@ -0,0 +1,16 @@
## Summary
Describe the operator-visible behavior and why the change is needed.
## Safety checklist
- [ ] I did not include API tokens, vault files, private keys, certificates, databases, or production-domain data.
- [ ] Provider mutations retain conflict checks, explicit credential routing, and fail-closed behavior.
- [ ] Certificate changes preserve staging/production isolation and exact DNS-01 cleanup ownership.
- [ ] I added or updated tests for the changed behavior.
- [ ] `make verify` passes locally.
- [ ] I updated documentation and the changelog when behavior changed.
## Testing
List the commands and environments used to validate this change.
+23
View File
@@ -0,0 +1,23 @@
version: 2
updates:
- package-ecosystem: gomod
directory: /
schedule:
interval: weekly
day: monday
open-pull-requests-limit: 5
groups:
go-dependencies:
patterns:
- '*'
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
day: monday
open-pull-requests-limit: 5
groups:
github-actions:
patterns:
- '*'
+66 -14
View File
@@ -4,51 +4,103 @@ on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Test (${{ matrix.os }})
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
- name: Check out source
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
go-version: '1.26.x'
persist-credentials: false
- name: Set up Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: go.mod
cache: true
- run: go test ./...
- run: go test -race ./...
- run: go vet ./...
- run: go build -trimpath ./cmd/domainops
cache-dependency-path: go.sum
- name: Verify dependency checksums
run: go mod verify
- name: Verify formatting
if: runner.os == 'Linux'
run: test -z "$(gofmt -l cmd internal)"
- name: Test
run: go test -shuffle=on ./...
- name: Test with race detector
run: go test -race ./...
- name: Vet
run: go vet ./...
- name: Build
run: go build -trimpath ./cmd/domainops
release-config:
vulnerability-scan:
name: Go vulnerability scan
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check out source
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Set up Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: go.mod
cache: true
cache-dependency-path: go.sum
- name: Scan reachable code
run: go run golang.org/x/vuln/cmd/govulncheck@v1.6.0 ./...
release-config:
name: Validate release configuration
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- name: Check out full history
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- uses: goreleaser/goreleaser-action@v6
persist-credentials: false
- name: Check GoReleaser configuration
uses: goreleaser/goreleaser-action@1a80836c5c9d9e5755a25cb59ec6f45a3b5f41a8 # v7.2.1
with:
distribution: goreleaser
version: '~> v2'
version: v2.17.0
args: check
cross-build:
name: Cross-build supported targets
timeout-minutes: 20
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
- name: Check out source
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
go-version: '1.26.x'
persist-credentials: false
- name: Set up Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: go.mod
cache: true
cache-dependency-path: go.sum
- name: Build supported targets
shell: bash
run: |
set -euo pipefail
for os in linux darwin; do
for arch in amd64 arm64; do
CGO_ENABLED=0 GOOS="$os" GOARCH="$arch" go build -trimpath -o "build/domainops-$os-$arch" ./cmd/domainops
+34 -11
View File
@@ -4,40 +4,63 @@ on:
push:
tags:
- 'v*'
workflow_dispatch:
permissions:
contents: read
concurrency:
group: release-${{ github.ref }}
cancel-in-progress: false
jobs:
verify:
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
- name: Check out source
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
go-version: '1.26.x'
persist-credentials: false
- name: Set up Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: go.mod
cache: true
- run: go test ./...
- run: go vet ./...
- run: go build -trimpath ./cmd/domainops
cache-dependency-path: go.sum
- name: Verify dependency checksums
run: go mod verify
- name: Test
run: go test ./...
- name: Vet
run: go vet ./...
- name: Build
run: go build -trimpath ./cmd/domainops
release:
needs: verify
if: startsWith(github.ref, 'refs/tags/v')
timeout-minutes: 20
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Check out full history
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- uses: actions/setup-go@v5
persist-credentials: false
- name: Set up Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version: '1.26.x'
go-version-file: go.mod
cache: true
- uses: goreleaser/goreleaser-action@v6
cache-dependency-path: go.sum
- name: Build and publish release
uses: goreleaser/goreleaser-action@1a80836c5c9d9e5755a25cb59ec6f45a3b5f41a8 # v7.2.1
with:
distribution: goreleaser
version: '~> v2'
version: v2.17.0
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}