Domain connect
Connect an owned domain to a service by applying an exact TXT verification record or a DNS-only CNAME in a selected DNS zone, then check whether it is publicly visible.
Overview
Use this when a service supplies an exact TXT challenge or CNAME for an owned domain. Ask the service or use its connector for the required record and the service's final verification. Run the default connect method once per record. The method reads the Cloudflare zone and public DNS, checks for conflicts, and pauses for one review of a new record. The review includes the FQDN, type, value, TTL and zone ID.
In the manual
Methods
connectverify
Declared by its execution profile. Read the profile
SKILL.md
Domain Connect
Use this when a service supplies an exact TXT challenge or CNAME for an owned domain. Ask the service or use its connector for the required record and the service's final verification. Run the default connect method once per record. The method reads the Cloudflare zone and public DNS, checks for conflicts, and pauses for one review of a new record. The review includes the FQDN, type, value, TTL and zone ID.
Before it runs
When runx asks for the DNS connection, use a token issued for the zone, or connect the Cloudflare account that owns it with runx connector use cloudflare/dns --connect. Public DNS verification uses the unauthenticated DNS connector.
The record
Use a direct child of the zone for this method. Supply TXT content as the service gives it, without DNS quoting. Use an exact destination hostname for CNAME. If a record already matches, the method reads DNS without writing. An occupied name, truncated record inventory, incompatible delegation or zone mismatch blocks the change. The returned record can be used for manual setup.
After it writes
runx reads the new record back separately from the create response. pending_dns means the public resolver has yet to return the exact record. Use verify to check it again without write authority. dns_visible names a public DNS observation. Continue through the destination service's own verifier before reporting the domain as connected. If the write response was lost, inspect exact Cloudflare state before resolving runx's retry decision.
Published execution profile
The execution profile published with 0.1.0, shown as its exact bytes.
| Methods |
|
|---|---|
| Profile digest | sha256:2390dd1ed43563d6fa6faa2a939bca84db17a5b769e9775e8bd33ae3194e636a |
version: "0.1.0"
minimum_runx: 0.12.0
default_method: connect
connectors:
cloudflare/dns: {manifest_digest: 'sha256:ad90b7eef0305a5948a73a3b3c80cf7d118fe98dcf2c75f8392ae828cd5ad64d'}
public-dns: {manifest_digest: 'sha256:58ae9f87fae834b5a7c013b2aa2f55f4d4471e2a33d3ca2131283f94081df7f0'}
visibility: public
category: ops
shared_inputs:
name:
type: string
description: Canonical record FQDN, without trailing dot. Use punycode for international names.
maxLength: 253
pattern: '^[a-z0-9_](?:[a-z0-9_-]{0,62})(?:\.[a-z0-9_][a-z0-9_-]{0,62})+$'
type: {enum: [TXT, CNAME], description: Exact record type the destination requires.}
content: {type: string, minLength: 1, maxLength: 120, pattern: '^[ -~]+$', description: Unquoted TXT challenge or target CNAME hostname.}
ttl: {type: integer, minimum: 60, maximum: 86400, description: Requested record TTL in seconds.}
methods:
connect:
description: Add one exact record to an empty name under an active Cloudflare zone, after review, then look it up in public DNS.
inputs:
name: {}
type: {}
content: {}
ttl: {}
zone_id: {type: string, pattern: '^[0-9a-f]{32}$', description: ID of the operator's selected Cloudflare zone.}
idempotency_key: {type: string, minLength: 1, maxLength: 128, description: Stable key for this exact record and zone. Reuse it while resolving an uncertain attempt.}
result_from: [create, verify]
examples:
- zone_id: '0123456789abcdef0123456789abcdef'
idempotency_key: project-site:domain-proof:1
name: _verification.example.com
type: TXT
content: proof=5kPq9e
ttl: 300
steps:
- id: prepare
tool: {module: domain.mjs, export: prepare}
inputs: {name: $input.name, type: $input.type, content: $input.content, ttl: $input.ttl}
outputs: {record: {type: object}}
- id: zone
operation: cloudflare/dns/zone.read
inputs: {zone_id: $input.zone_id}
result:
required: [success, zone_id, zone, status, account_id, nameservers]
equals: {success: true, zone_id: $input.zone_id, status: active}
- id: zone-ns
operation: public-dns/record.lookup
inputs: {name: $steps.zone.provider_operation.result.zone, type: NS}
- id: child-ns
operation: public-dns/record.lookup
inputs: {name: $input.name, type: NS}
- id: match-zone
tool: {module: domain.mjs, export: checkZone}
inputs:
zone_id: $input.zone_id
record: $steps.prepare.record
zone: $steps.zone.provider_operation.result
delegation: $steps.zone-ns.provider_operation.result.response
child: $steps.child-ns.provider_operation.result.response
outputs: {zone_name: {type: string}}
- id: current
operation: cloudflare/dns/records.inspect
inputs: {zone_id: $input.zone_id, name: $input.name}
- id: decide
tool: {module: domain.mjs, export: decide}
inputs: {current: $steps.current.provider_operation.result, record: $steps.prepare.record}
outputs: {decision: {enum: [create, unchanged, conflict]}}
- id: create
when: {value: $steps.decide.decision, equals: create}
operation: cloudflare/dns/record.create
inputs:
zone_id: $input.zone_id
name: $steps.prepare.record.name
type: $steps.prepare.record.type
content: $steps.prepare.record.content
ttl: $steps.prepare.record.ttl
idempotency_key: $input.idempotency_key
approval: {type: domain_dns_change, reason: Add this exact DNS record in the selected Cloudflare zone.}
result: {required: [id]}
- id: public-dns
operation: public-dns/record.lookup
inputs: {name: $input.name, type: $input.type}
- id: verify
tool: {module: domain.mjs, export: verify}
inputs:
record: $steps.prepare.record
response: $steps.public-dns.provider_operation.result.response
decision: $steps.decide.decision
outputs:
status: {enum: [dns_visible, pending_dns, manual_required]}
dns_provider_status: {enum: [readback_verified, unchanged, conflict]}
record: {type: object}
service_status: {const: verification_required}
verify:
description: Recheck public visibility for one exact DNS record. Use the destination service's own verifier afterward.
inputs:
name: {}
type: {}
content: {}
ttl: {}
result_from: [verify]
examples:
- name: _verification.example.com
type: TXT
content: proof=5kPq9e
ttl: 300
steps:
- id: prepare
tool: {module: domain.mjs, export: prepare}
inputs: {name: $input.name, type: $input.type, content: $input.content, ttl: $input.ttl}
outputs: {record: {type: object}}
- id: public-dns
operation: public-dns/record.lookup
inputs: {name: $input.name, type: $input.type}
- id: verify
tool: {module: domain.mjs, export: verify}
inputs: {record: $steps.prepare.record, response: $steps.public-dns.provider_operation.result.response}
outputs:
status: {enum: [dns_visible, pending_dns]}
dns_provider_status: {const: unchecked}
record: {type: object}
service_status: {const: verification_required}
Published package and test evidence.
This exact version passed its recorded test run: 8 checks passed · 0 failed.
Test result
| Test result | Passed |
|---|---|
| Tested version | 0.1.0 |
| Recorded result | 8 checks passed · 0 failed |
| Result source | Reported by the publisher (runx_registry_publish) |
| Suite | runx-test |
| Test recorded | |
| Declared cases | 8 |
| Test record | Open the recorded run |
Inspect receipt references
sha256:1d209a4c102a95627165c26c3c6c3815f99116fe2d6e1babe0d613087d143bafsha256:e76368ea9d001d9f70cecb6f77bd15714cb64ca29e9b8ed5869ef9c6b6c0fd99sha256:744c237aedbecf62c3dcc25b762c15677f06b00cb54ce5ba450c4dff79891cedsha256:591195e85255894e7ecb5e72287b3fd1cc1ff70acf417d342c3bd13da24156e8sha256:fc87782b357459652e9ca31b53e111ba712b829abb6ccfcafdf1f6513a9730cbsha256:b9c76a5f2c3e2d6956810f74cf3fe94a5a52fa796425712774e1e816f682e5d1sha256:4bd5e6dc54b95bc8ccf56020ff150443342d6d30d8d4e8e4170e02101c57fe51sha256:0431a34dc38473791087ac5caf5f5b06cb12ec34b16ef2cc74c82fb7e3a4afaaPackage identity
| Published revision | 0.1.0 |
|---|---|
| Content digest | sha256:f05b5f4d79716f8fd726f279b75bbf15b8e50a065ac8eedadaa374a106935a72 |
| SKILL.md digest | sha256:ffafa868f8c618103982578ead39d7f0a3cb47dcfe70a0f0f7438c1924079f80 |
| Execution profile digest | sha256:2390dd1ed43563d6fa6faa2a939bca84db17a5b769e9775e8bd33ae3194e636a |
| Publisher identity | Verified publisher · runx |
| Trust tier | Verified publisherrunx has verified this publisher. This tier is not a code assessment. |
| Attestations |
|
| Source provenance | Not published with this version |
Version history
0.1.0ViewingContent digest sha256:f05b5f4d79716f8fd726f279b75bbf15b8e50a065ac8eedadaa374a106935a72