Skip to content

fix(tools): expose the zone selector in the DNS record list schema #690

Open

Description

@coygeek

Summary of the issue

cf tools omits the zone input from cf_dns_records_list. A caller that builds invocations from the tool schema has no schema field for selecting the target zone. The command accepts --zone and documents it in both --help and cf schema.

Expected behaviour

The tool schema exposes the optional zone selector for the same zone ID or domain name accepted by the CLI. It retains the current ability to use a zone configured in the environment.

Version of cf used

1.0.0-rc.1

System information and package versions

Node.js 26.13.1, npm 12.2.2, macOS 27.2 (arm64).

Reproduction (optional)

Run these commands with the cf version listed above. jq is used only to select the relevant output. The ID in the final command is synthetic, and the dry run makes no DNS change.

cf tools | jq -c '.tools[] | select(.name == "cf_dns_records_list") | .inputSchema.properties | {zone: has("zone"), name: has("name")}'
cf dns records list --help
cf schema dns records list
cf dns records list --zone 11111111111111111111111111111111 --dry-run | jq -r '.pathParams["zone-id"]'

Relevant error logs (optional)

The first command returned {"zone":false,"name":true}. Help listed -z, --zone as the zone ID or domain name selector, and API schema described the zone_id path parameter with "flag": "zone". The dry run returned the exact synthetic ID. These probes needed no credentials.

Evidence

  • Expected source: Release candidate changelog, Scripts and agents promises that cf tools lists the flags a command accepts. The command's own help and API schema identify the relevant flag.
  • Failure source: The cf tools command and its cf_dns_records_list schema output above. At current main, the tool converter builds properties from the command's argument and option metadata. The generated cf dns records list entry lacks zone in both lists. The published release and the CI package for the linked main commit reproduced the omission.
  • Evidence provenance: observed
  • Local verification: reproduced
  • Reproduction completeness: complete

Restoration check

The projection reports zone: true and name: true. The zone property describes a zone ID or domain name, is optional so configured selection still works, and matches the input advertised in command help and API schema.

Triage assessment

  • Impact level: P2
  • Assessment status: supported
  • Impact basis: Schema-driven clients cannot use a property for selecting the zone on a generated DNS command. The same CLI command can be invoked directly with a zone.
  • Workaround status: available
  • Workaround basis: A caller that can invoke the CLI directly can take --zone from the command help or API schema and pass it as shown by the dry-run control.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions