Skip to content

fix(config): telemetry.logfire, cloudflare.access.enabled and cloudflare.access.idp are settings that no code reads #2457

Closed

Description

@dan-petty

Problem or Motivation

Three settings fields are declared, documented in docs/CONFIGURATION.md and settable with devops config set, but no code reads them (origin/main 4226904, git grep over src):

  • telemetry.logfire (TelemetryConfig.logfire): the Logfire bridge reads telemetry.logfire_token and logfire_send_to_logfire, never logfire.
  • cloudflare.access.enabled (CloudflareAccessConfig.enabled): devops cloudflare access reads allowed_emails, bypass_ips and public_ip_bypass only.
  • cloudflare.access.idp (CloudflareAccessConfig.idp): no reader.

A person who sets one of them sees no effect. #2444 found them when it gave each read option a variable; it gave these three none.

Proposed Solution & Architectural Design

For each field: delete it, or make the code read it. A deleted field that a config file still holds loads, and the next save drops it, as the removed valkey.host does.

Target Subsystem

src/devops_cli/config/settings.py, src/devops_cli/telemetry/logfire.py, src/devops_cli/commands/cloudflare.py.

Existing Tool Considered

Not applicable: this removes or wires settings fields; nothing is built.

Acceptance criteria

  • Each of the three fields is deleted or has a reader that a test covers.
  • docs/CONFIGURATION.md is regenerated.

Related

#2444 (part 1 of #1000).

Proposed design

Problem statement

Three settings fields are declared in the Pydantic models, documented in CONFIGURATION.md, and settable with devops config set, but no code reads them. A person who sets one of them sees no effect. The fields are telemetry.logfire, cloudflare.access.enabled, and cloudflare.access.idp.

Acceptance criteria

Requirement: Dead fields removed

The fields telemetry.logfire, cloudflare.access.enabled, and cloudflare.access.idp SHALL be removed from the Pydantic settings models.

Scenario: Model fields absent

  • WHEN A test inspects TelemetryConfig.model_fields and CloudflareAccessConfig.model_fields
  • THEN Neither dict contains the key 'logfire', 'enabled', or 'idp' respectively

Requirement: Config example updated

The config.example.yaml file SHALL NOT contain the removed fields.

Scenario: Example file clean

  • WHEN A test reads config.example.yaml and parses the telemetry and cloudflare.access sections
  • THEN The keys 'logfire', 'enabled', and 'idp' are absent from those sections

Requirement: Documentation regenerated

The docs/CONFIGURATION.md file SHALL NOT list the removed fields.

Scenario: Docs reflect model

  • WHEN A test reads docs/CONFIGURATION.md and searches for the removed field names in the telemetry and cloudflare tables
  • THEN The strings 'logfire' as a standalone row key, 'enabled' in the access row, and 'idp' in the access row are absent

Requirement: Existing config files still load

A config file that still holds a removed key SHALL load without error, and the next save SHALL drop the key.

Scenario: Legacy key tolerated

  • WHEN A test writes a config file containing telemetry.logfire: true and loads settings
  • THEN The load succeeds and the key is not present in the saved output

Existing Tool Considered

Not applicable. This change deletes three dead field declarations from the project's own settings model. No external tool or library covers the need. The written cost is the tokens to remove three field lines from settings.py, remove their entries from config.example.yaml, regenerate docs/CONFIGURATION.md, and add one test that asserts the fields are absent from the model. The elapsed time is under one hour.

Key questions

  • Should each dead field be deleted or wired to a reader?: Delete all three. The project already removes dead fields (valkey.host, valkey.port, valkey.db) and the ValkeyConfig docstring records the pattern: a file that still holds the removed keys loads, and the next save drops them. Wiring telemetry.logfire would duplicate logfire_token and logfire_send_to_logfire, which the bridge already reads. Wiring cloudflare.access.enabled would gate a sync command that has no disable path. Wiring cloudflare.access.idp would add a parameter that the Cloudflare API calls do not use. (best practice) [sources: src/devops_cli/config/settings.py, src/devops_cli/telemetry/logfire.py, src/devops_cli/commands/cloudflare.py, openspec/changes/archive/2026-10-28-2444-settings-field-declaration/proposal.md]
    • Chosen: Delete all three fields. No code reads them. The project has a recorded pattern for removing dead fields (valkey.host, valkey.port, valkey.db). Deleting is the smallest change and matches the pre-1.0 policy of not keeping dead code behind flags.
    • Rejected: Wire telemetry.logfire as a gate for the Logfire bridge. The bridge already gates on the presence of logfire_token and the logfire_send_to_logfire flag. Adding a third gate that no test exercises adds a dead path.
    • Rejected: Wire cloudflare.access.enabled to gate access_sync. The sync command has no disable path. Gating it on a flag that defaults to False would break existing users who set allowed_emails and bypass_ips without setting enabled.
    • Rejected: Wire cloudflare.access.idp into the Cloudflare API call. The Cloudflare Access API does not take an idp parameter in the sync_access_application call. There is no reader to wire it to.
  • Does the removal break a config file that still holds a removed key?: No. The Settings model uses extra='ignore' at the top level, and the child models (TelemetryConfig, CloudflareAccessConfig) use the default Pydantic behavior. A key that the model no longer declares is ignored on load. The next save drops it, as the removed valkey.host, valkey.port, and valkey.db keys do. [sources: src/devops_cli/config/settings.py]
  • Does refactor(config): each setting declares its variable and description on its settings field, and the option, variable and secret registries are derived from it #2444 need to be delivered before this issue?: No. refactor(config): each setting declares its variable and description on its settings field, and the option, variable and secret registries are derived from it #2444 is already archived (delivered). Its proposal records that it gave the three dead fields no variable and deferred them to fix(config): telemetry.logfire, cloudflare.access.enabled and cloudflare.access.idp are settings that no code reads #2457. There is no open dependency. [sources: openspec/changes/archive/2026-10-28-2444-settings-field-declaration/proposal.md]

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    source/agent
    type/bug
    status/new
    value/medium
    effort/low
    on Oct 28, 2026
  2. dan-petty commented on Oct 28, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/bug. Three declared settings silently do nothing when set, which is a defect in the settings surface.
    • Priority: P2-Medium. Users who set these fields see no effect, but the impact is limited to three specific settings and does not break other functionality.
    • Value: Medium. Removing or wiring dead settings prevents user confusion and keeps the documented config accurate.
    • Effort: Low. Each field requires either a small deletion or a short reader plus one test; three fields total.
    • Related: refactor(config): each setting declares its variable and description on its settings field, and the option, variable and secret registries are derived from it #2444, which asks for a different change. Both concern config settings fields; #2444 refactors how registries are derived from settings, while the candidate deletes or wires three specific fields that no code reads.
  3. added
    priority/p2-medium
    on Oct 28, 2026
  4. added
    status/ready
    and removed
    status/new
    on Oct 29, 2026
  5. devops-cli-service commented on Oct 29, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at 4a3242e (see proposed design in issue body).

  6. added
    scope/config
    on Oct 30, 2026
  7. added
    status/planned
    and removed
    status/ready
    on Oct 31, 2026
  8. dan-petty commented on Nov 3, 2026

    @dan-petty
    OwnerAuthor

    merged

  9. removed
    status/planned
    on Nov 3, 2026
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

    effort/lowpriority/p2-mediumscope/configsource/agenttype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions