Skip to content

feat(config): generate a credential with config set #3998

Closed

Description

@dan-petty

Problem

A credential that no person chooses, such as the Crawl4AI bearer token crawl4ai.api_token, has no command that makes it on the workstation alone. Today there are two ways to get a value into the OS keyring:

  • devops config set <key> stores a value that the person types or pipes in. The person must make the random value first, with a tool outside devops.
  • devops k8s push-secrets generates the value when the keyring has none (the SecretGenerator of the row), stores it in the keyring, and writes it to the cluster. A person who wants the key in the keyring first, for a local run or before the cluster is up, cannot do that step alone.

The generator of each row is declared in src/devops_cli/k8s/cluster_secrets.py, so the knowledge of how to make a valid value (kind and length) already exists. devops config set does not use it.

Expected

devops config set <key> --generate makes a random value with the generator that the project declares for that credential, and stores it in the OS keyring. The value never shows in the output, the shell history or the process list. The command refuses a key that has no declared generator, and refuses to replace a value that is already set unless --rotate is given.

Acceptance criteria

  • devops config set crawl4ai.api_token --generate stores a new token of the declared kind and length in the keyring, and prints that it did so without printing the value.
  • The command takes the generator from the same declaration that devops k8s push-secrets uses. There is one declaration per credential, not two.
  • A key with no declared generator exits non-zero and names the keys that have one.
  • A credential that is already set is not replaced. --rotate replaces it. --dry-run makes no keyring write and no request.
  • --generate and a typed value or --from-file together are an error.
  • After the command, devops k8s push-secrets --plan shows the entry as taken from the keyring, not as generated.
  • The docs of config set and the line in k8s/README.md that says a person creates the Crawl4AI Secret name the two commands.

Existing tool considered

openssl rand or python -m secrets make the value, but the person must then pipe it into devops config set --from-file -, and must know the kind and length per credential. push-secrets already generates, but it also writes to the cluster. The standard library secrets module makes the value inside the command; no new dependency.

Related

Proposed design

Problem statement

A credential that no person chooses has no command that makes it on the workstation alone. devops config set stores only a value that a person makes with another tool. devops k8s push-secrets makes the value, but it also writes the cluster. The generator of each credential is already declared in src/devops_cli/k8s/cluster_secrets.py. The change adds --generate to devops config set, so one command makes the value and stores it in the OS keyring.

Acceptance criteria

Requirement: Generate the declared credential

devops config set <option> --generate SHALL store a new value from the credential's declared generator in the OS keyring.

Scenario: Generate the Crawl4AI token

  • WHEN devops config set crawl4ai.api_token --generate runs with an unlocked keyring and no stored token
  • THEN the keyring holds a new URL-safe value of 43 characters, and the command prints one line that names the option and no value.

Requirement: One generator declaration

The command MUST read the generator from the CLUSTER_SECRETS table that devops k8s push-secrets reads.

Scenario: The command and the push agree

  • WHEN a generator of src/devops_cli/k8s/cluster_secrets.py changes its kind or length
  • THEN devops config set --generate makes the new value with no change to the command, and a test fails when an option the command lists has no generator in the table.

Requirement: Refuse a credential with no generator

The command MUST exit non-zero for a credential with no declared generator and name the options that have one.

Scenario: A typed credential has no generator

  • WHEN devops config set gemini.api_key --generate runs
  • THEN the command exits non-zero, writes nothing to the keyring, and lists crawl4ai.api_token, qdrant.api_key, runs.index_password, valkey.password and grafana.password.

Requirement: Keep a stored value

The command MUST NOT replace a value that the keyring already holds unless --rotate is given.

Scenario: A token is already stored

  • WHEN devops config set crawl4ai.api_token --generate runs while the keyring holds a token
  • THEN the command exits non-zero, names --rotate, and the keyring keeps the stored token.

Requirement: Rotate the value

--rotate SHALL replace the stored value with a new value from the declared generator.

Scenario: Rotate the token

  • WHEN devops config set crawl4ai.api_token --generate --rotate runs while the keyring holds a token
  • THEN the keyring holds a different value of the declared kind and length, and the command prints no value.

Requirement: Dry run writes nothing

--dry-run MUST make no keyring write and no request.

Scenario: Dry run of a generate

  • WHEN devops config set crawl4ai.api_token --generate --dry-run runs
  • THEN the command prints the generator kind, its length and a masked placeholder, exits 0, and the keyring keeps its previous content.

Requirement: Refuse a value with generate

--generate with a typed value or with --from-file MUST be a usage error.

Scenario: A typed value and generate together

  • WHEN devops config set crawl4ai.api_token --generate value runs
  • THEN the command exits non-zero with a usage error, names the two flags that conflict, and writes nothing.

Requirement: Refuse a stray rotate

--rotate without --generate MUST be a usage error.

Scenario: Rotate without generate

  • WHEN devops config set crawl4ai.api_token --rotate runs
  • THEN the command exits non-zero with a usage error and writes nothing.

Requirement: The push reads the stored value

After the command, devops k8s push-secrets --plan MUST report the entry as taken from the keyring, not as generated.

Scenario: Plan after a generate

  • WHEN devops k8s push-secrets --only devops/crawl4ai --plan runs after the generate
  • THEN the plan line names keyring crawl4ai_api_token with state would create or unchanged, and never would generate.

Requirement: Docs name the two commands

The config set documentation and the Crawl4AI bullet of k8s/README.md MUST name both commands.

Scenario: A reader follows the Crawl4AI bullet

  • WHEN a reader opens the config set help and the Crawl4AI bullet of k8s/README.md
  • THEN both name devops config set crawl4ai.api_token --generate and devops k8s push-secrets --only devops/crawl4ai.

Existing Tool Considered

No alternatives check has run. The standard library secrets module covers the generation, and SecretGenerator.generate in src/devops_cli/k8s/cluster_secrets.py:124 already calls it. It lacks the kind and the length of each credential; the CLUSTER_SECRETS table declares those. openssl rand and python -m secrets make a value, but they know no per-credential kind and length, and a person must then pipe the value in. The change builds no generator and adds no dependency: it adds one lookup function, three flags and their tests. That is smaller than a second generator table, which would drift from the push.

Key questions

  • Where does config set --generate read the generator of a credential?: Add generator_for_option(option) to src/devops_cli/k8s/cluster_secrets.py. It resolves credential(option).keyring_name, finds the KeyringSource of CLUSTER_SECRETS with that key, and returns the SecretGenerator of its entry. The push and the command then read one table. (best practice) [sources: src/devops_cli/k8s/cluster_secrets.py, src/devops_cli/k8s/cluster_secrets.py:124, src/devops_cli/k8s/secret_push.py]
    • Chosen: Lookup in cluster_secrets.py. The table is the one declaration of each generator, and a test can hold it.
    • Rejected: A second generator table in the config command. Two declarations drift, and the change asks for one declaration per credential.
    • Rejected: Call plan_push against a fake cluster. It reads the cluster and the live Secrets, and the command needs neither.
  • Which name does the person give to --generate?: The managed credential option, such as crawl4ai.api_token, the name that devops config set takes today. (best practice) [sources: src/devops_cli/k8s/cluster_secrets.py, k8s/README.md]
    • Chosen: The managed credential option. It is the name of the existing command, and KeyringSource.option ties it to the keyring name.
    • Rejected: The keyring key, such as crawl4ai_api_token. A person must then know the keyring name, and config set names options everywhere else.
    • Rejected: The Secret ref and key, such as devops/crawl4ai CRAWL4AI_API_TOKEN. One keyring value feeds two Secrets, so a Secret ref names no single credential.
  • What does the command do when the keyring already holds a value?: It exits non-zero and names --rotate. push-secrets refuses a live value that differs without --rotate in the same way. (best practice) [sources: src/devops_cli/k8s/secret_push.py, k8s/README.md]
    • Chosen: Exit non-zero and name --rotate. It matches the rule of push-secrets, and no stored token changes without a clear request.
    • Rejected: Replace the value and warn. A silent replacement breaks the cluster client that holds the old token.
  • How does the value stay out of the shell history and the process list?: The command makes the value in its own process with SecretGenerator.generate and calls keyring_write. No argument, prompt pipe or child process carries it. (best practice) [sources: src/devops_cli/k8s/cluster_secrets.py:124, src/devops_cli/k8s/secret_push.py]
    • Chosen: Make the value in the process and write it with keyring_write. _store_in_keyring writes values the same way, and the value reaches no argv and no log.
    • Rejected: Run openssl rand and read its stdout. It adds a child process and knows no per-credential kind or length.
  • What does --dry-run read?: Nothing. It prints the generator kind, its length and the action it would take, with a masked placeholder. dry_run_push makes no request in the same way. (best practice) [sources: src/devops_cli/k8s/secret_push.py]
    • Chosen: Read nothing. It matches the dry run of the push, which reads no keyring, cluster or setting.
    • Rejected: Read the keyring to report would replace. A read makes the dry run depend on the keyring state and breaks the rule that it makes no request.
  • Does --generate accept a keyring-only key such as searxng_secret_key?: No. The command takes a managed credential option. A keyring-only key has no option name, and k8s/README.md rotates it with uv run keyring set. (best practice) [sources: k8s/README.md, src/devops_cli/k8s/cluster_secrets.py]
    • Chosen: Refuse a keyring-only key. No Settings option reads such a key, so config set has no name for it today.
    • Rejected: Accept the keyring key too. It adds a second name form and a second lookup, which this change does not need.
  • Which tests hold the one-declaration rule and the stored value?: tests/k8s/test_cluster_secret_plan.py and tests/k8s/test_cluster_secret_push.py hold the push. A new test in tests/commands/test_config_commands.py asserts that each listed option has a generator in CLUSTER_SECRETS, and that the plan reports the stored value as would create or unchanged. [sources: tests/k8s/test_cluster_secret_plan.py, tests/k8s/test_cluster_secret_push.py, tests/commands/test_config_commands.py]

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Alternatives check of 2026-11-09: partly.
Tool: keyring (https://pypi.org/project/keyring), MIT, last activity 2025-11-16, maintained.

Activity

  1. added
    source/agent
    type/feature
    scope/config
    status/new
    value/medium
    effort/medium
    on Nov 7, 2026
  2. dan-petty commented on Nov 7, 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/feature. The feat prefix of the title gives the type.
    • Scope: scope/config. The (config) scope of the title gives the scope.
    • Priority: P2-Medium. It is a convenience feature with existing workarounds, not a bug or blocker.
    • Value: Medium. It removes the need for external tools to generate a credential locally, but openssl or python -m secrets still work.
    • Effort: Medium. It needs a new flag, generator lookup, rotate and dry-run handling, error cases, and doc updates.
    • Related: feat(k8s): add the Crawl4AI token to the cluster secrets #3882, which asks for a different change. Both reference the Crawl4AI token generator declaration, but #3882 adds the declaration while the candidate adds a command that uses it locally.
  3. added
    priority/p2-medium
    on Nov 7, 2026
  4. added
    status/ready
    and removed
    status/new
    on Nov 8, 2026
  5. devops-cli-service commented on Nov 8, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at 1f03ee3 (see proposed design in issue body).

  6. devops-cli-service commented on Nov 9, 2026

    @devops-cli-service
    Contributor

    Alternatives check: partly

    Reason: The search found no tool that generates a per-credential value and stores it under the project's own generator table. The keyring library (MIT, maintained) covers the OS keyring write. The standard library secrets module, which SecretGenerator.generate already calls, makes the value. The per-credential kind and length and the link to CLUSTER_SECRETS are project-specific, so the issue's own design is the right one.

    Tool: keyring (https://pypi.org/project/keyring)

    • License: MIT
    • Last activity: 2025-11-16
    • Maintained: yes

    Covers:

    • Writing and reading a value in the OS keyring
    • Random value generation (stdlib secrets, already used by SecretGenerator)

    Lacks:

    • Per-credential kind and length from the CLUSTER_SECRETS table
    • The --generate, --rotate and --dry-run flags of devops config set
    • Refusal rules and the push-secrets plan consistency

    Tools considered:

    Searches run:

    • CLI generate random secret and store in OS keyring python, results: 5

    Sources:

    Checked on 2026-11-09. A person decides what this means for the item. The check changes no label and closes no issue.

  7. added
    owner/service
    on Nov 18, 2026
  8. devops-cli-service commented on Nov 18, 2026

    @devops-cli-service
    Contributor

    Plan state: branch feat/3998-generate-a-credential-with-config-set, draft pull request #6274. The pull request plans the item and closes no issue. The stage job and the step fix-plan edit this comment, and a comment of each run tells what the run did.

    The task groups, with the tokens of the inputs of each step, for a budget of 64000 tokens:

    1. Add the generator lookup to the cluster Secret table: 30223 tokens
    2. Add the generate and rotate flags to the set command: 43521 tokens
    3. Name both commands in the configuration page: 28719 tokens
    4. Edit the Crawl4AI bullet and regenerate the pages: 41137 tokens

    A model review of the plan found these points. They stop no draft, and a person judges them:

    • major false_premise at design (decisions): The plan treats docs/CONFIGURATION.md as a prose page to edit by hand, but that file is generated from src/devops_cli/docs/generator.py, so the hand edit is overwritten and uv run devops ci docs fails; the text must change in the generator, which no group changes. Evidence: "This document is automatically generated from Settings (src/devops_cli/config/settings.py)."
    • minor spec_delta_wrong at spec config-commands (The generator of a credential comes from the cluster Secret table): The scenario's THEN states that a test fails when an option has no generator, which is a claim about the test suite that no test can assert, and the other scenario compares a count against an undefined census. Evidence: "the generate makes the new value with no change to the command, and the test fails when an option that the command lists has no generator in the table"
    • minor other at tasks (1): generator_option_names() as described takes the option of every entry that declares a generator, but the table also gives generators to keyring-only entries whose source has option=None (such as the LLM gateway master key), so sorting them raises on None; the lookup must skip those entries. Evidence: "The second returns the sorted option of every entry that declares one."
    • minor other at tasks (1): The helper is described as returning the option of every entry that declares a generator, but seven entries with a generator (llm-gateway-secrets master-key, valkey-devops, searxng, grafana secret-key, grafana llm-gateway-key, grafana-image-renderer, mattermost-db) have no option, and qdrant.api_key and qdrant.read_only_api_key each declare one in two rows, so the list would hold None and repeated names. That contradicts the test the same group writes, which holds one entry per managed option. Evidence: "The second returns the sorted option of every entry that declares one."
    • minor spec_delta_wrong at spec config-commands (The generator of a credential comes from the clusster Secret table): The second scenario's THEN says the count of the options equals the count of the censes, but the censes is defined in the same group as that count, so the clause is self-referential and a test asserting it proves nothing. Evidence: "and the count of the options equals the count of the censes"
  9. devops-cli-service commented on Nov 18, 2026

    @devops-cli-service
    Contributor

    The stage job staged the plan of draft pull request #6274. The plan state comment of #6274 holds the branch, the task groups and the findings.

    The runs of the planner and the review made 185 model request(s), and used 14795852 input tokens and 367880 output tokens. The tool calls, in order:

    1. search_code({"text":"def set_"})
    2. list_files({"directory":"src/devops_cli/commands"})
    3. read_file({"path":"src/devops_cli/commands/config.py","start_line":1,"end_line":140})
    4. read_file({"path":"src/devops_cli/commands/config.py","start_line":230,"end_line":400})
    5. read_file({"path":"src/devops_cli/commands/config.py","start_line":150,"end_line":232})
    6. search_code({"text":"crawl4ai.api_token"})
    7. read_spec({"capability":"config-commands"})
    8. read_spec({"capability":"crawl4ai-api-token"})
    9. search_code({"text":"def credential"})
    10. search_code({"text":"generator_for"})
    11. read_file({"path":"src/devops_cli/config/env.py","start_line":120,"end_line":240})
    12. read_file({"path":"src/devops_cli/config/os_keyring.py","start_line":200,"end_line":300})
    13. read_file({"end_line":340,"path":"src/devops_cli/config/os_keyring.py","start_line":298})
    14. read_file({"end_line":620,"path":"src/devops_cli/k8s/secret_push.py","start_line":470})
    15. search_code({"text":"would generate"})
    16. list_files({"directory":"tests/commands"})
    17. search_code({"text":"config\", \"set\""})
    18. read_file({"end_line":60,"path":"tests/commands/test_config_commands.py","start_line":1})
    19. read_file({"end_line":190,"path":"src/devops_cli/k8s/secret_push.py","start_line":1})
    20. file_symbols({"path":"src/devops_cli/k8s/cluster_secrets.py"})
    21. search_code({"text":"def _plan_entry"})
    22. read_file({"end_line":700,"path":"src/devops_cli/k8s/cluster_secrets.py","start_line":655})
    23. read_file({"end_line":470,"path":"src/devops_cli/k8s/secret_push.py","start_line":418})
    24. search_code({"text":"_SECRET_FIELDS"})
    25. read_file({"end_line":120,"path":"src/devops_cli/config/env.py","start_line":60})
    26. search_code({"text":"generator=SecretGenerator("})
    27. search_code({"text":"crawl4ai"})
    28. search_code({"text":"Crawl4AI"})
    29. references({"name":"crawl4ai"})
    30. search_code({"text":"config set crawl4ai"})
    31. search_code({"text":"bearer token of Crawl4AI"})
    32. search_code({"text":"11235"})
    33. search_code({"text":"devops config set"})
    34. search_code({"text":"omit VALUE to type one hidden"})
    35. search_code({"text":"--from-file"})
    36. read_spec({"capability":"config-commands","requirement":"devops config set writes the key that it names"})
    37. read_spec({"capability":"crawl4ai-api-token","requirement":"The push makes the token once"})
    38. read_file({"end_line":120,"path":"tests/k8s/test_cluster_secret_plan.py","start_line":1})
    39. read_file({"end_line":760,"path":"tests/k8s/test_cluster_secret_plan.py","start_line":700})
    40. search_code({"text":"\"docs\":"})
    41. search_code({"text":"def docs"})
    42. read_file({"path":"src/devops_cli/commands/config.py","start_line":230,"end_line":360})
    43. read_file({"path":"src/devops_cli/k8s/cluster_secrets.py","start_line":40,"end_line":150})
    44. search_code({"text":"def credential("})
    45. search_code({"text":"generator_for_option"})
    46. read_file({"path":"src/devops_cli/config/os_keyring.py","start_line":250,"end_line":330})
    47. read_file({"path":"k8s/README.md","start_line":760,"end_line":800})
    48. read_file({"path":"docs/CONFIGURATION.md","start_line":1,"end_line":60})
    49. list_files({"directory":"tests/commands"})
    50. search_code({"text":"_SECRET_FIELDS"})
    51. read_file({"end_line":60,"path":"tests/commands/test_config_commands.py","start_line":1})
    52. read_file({"end_line":470,"path":"src/devops_cli/k8s/secret_push.py","start_line":425})
    53. list_files({"directory":"docs/commands"})
    54. read_spec({"capability":"config-commands"})
    55. read_spec({"capability":"crawl4ai-api-token"})
    56. read_file({"end_line":60,"path":"src/devops_cli/commands/config.py","start_line":1})
    57. read_file({"end_line":272,"path":"src/devops_cli/k8s/cluster_secrets.py","start_line":248})
    58. read_spec({"capability":"crawl4ai-api-token","requirement":"The push makes the token once"})
    59. search_code({"text":"keyring_sources"})
    60. search_code({"text":"For any other key, it exits 1 with"})
    61. search_code({"text":"CRAWL4AI_ENV_NAME"})
    62. read_file({"end_line":352,"path":"src/devops_cli/k8s/cluster_secrets.py","start_line":333})
    63. read_file({"end_line":715,"path":"src/devops_cli/k8s/cluster_secrets.py","start_line":686})
    64. search_code({"text":"crawl4ai.api_token"})
    65. search_code({"text":"from_file"})
    66. search_code({"text":"class KeyringLockedError"})
    67. search_code({"text":"class SecretStorageError"})
    68. search_code({"text":"class KeyringUnavailableError"})
    69. read_file({"end_line":560,"path":"src/devops_cli/k8s/secret_push.py","start_line":540})
    70. read_file({"end_line":815,"path":"src/devops_cli/docs/generator.py","start_line":780})
    71. search_code({"text":"CONFIGURATION.md"})
    72. read_issue({"number":3882})
    73. read_issue({"number":3937})
    74. find_issues({"terms":"config set generate keyring"})
    75. search_code({"text":"class FakeCluster"})
    76. search_code({"text":"generator=SecretGenerator("})
    77. search_code({"text":"KeyringSource.for_credential("})
    78. search_code({"text":"generator_options"})
    79. search_code({"text":"_store_generated"})
    80. search_code({"text":"generator_option_names"})
    81. list_files({"directory":"docs"})
    82. file_symbols({"path":"src/devops_cli/commands/config.py"})
    83. list_files({"directory":"tests/commands"})
    84. search_code({"text":"docs generate"})
    85. read_file({"path":"src/devops_cli/commands/config.py","start_line":255,"end_line":330})
    86. file_symbols({"path":"src/devops_cli/config/os_keyring.py"})
    87. list_files({"directory":"docs/commands"})
    88. search_code({"text":"generator=SecretGenerator(\"urlsafe\", 32)"})
    89. search_code({"text":"def keyring_sources"})
    90. search_code({"text":"def credential"})
    91. read_file({"path":"src/devops_cli/k8s/secret_push.py","start_line":425,"end_line":470})
    92. read_file({"path":"src/devops_cli/k8s/cluster_secrets.py","start_line":330,"end_line":356})
    93. read_file({"path":"src/devops_cli/k8s/secret_push.py","start_line":535,"end_line":575})
    94. read_file({"path":"k8s/README.md","start_line":770,"end_line":800})
    95. list_files({"directory":"tests/support"})
    96. read_spec({"capability":"config-commands"})
    97. read_file({"path":"src/devops_cli/config/env.py","start_line":150,"end_line":200})
    98. search_code({"text":"generator_for_option"})
    99. search_code({"text":"_store_generated"})
    100. search_code({"text":"_SECRET_FIELDS"})
    101. search_code({"text":"generator_option_names"})
    102. search_code({"text":"crawl4ai.api_token"})
    103. read_file({"path":"src/devops_cli/config/env.py","start_line":199,"end_line":225})
    104. read_issue({"number":3882})
    105. read_issue({"number":3937})
    106. find_issues({"terms":"config set generate"})
    107. read_file({"path":"src/devops_cli/lang/en/messages.py","start_line":375,"end_line":400})
    108. search_code({"text":"class ConfigHelp"})
    109. search_code({"text":"from_file"})
    110. read_file({"end_line":60,"path":"tests/support/cluster_secret_fakes.py","start_line":30})
    111. read_file({"end_line":200,"path":"tests/commands/test_config_commands.py","start_line":170})
    112. search_code({"text":"KEYRING_SERVICE"})
    113. search_code({"text":"def keyring_sources"})
    114. search_code({"text":"generator=SecretGenerator(\"urlsafe\", 32),"})
    115. search_code({"text":"def _store_in_keyring"})
    116. search_code({"text":"EntryState.GENERATED"})
    117. search_code({"text":"def keyring_write"})
    118. search_code({"text":"def keyring_read"})
    119. search_code({"text":"def require_persistent_keyring"})
    120. search_code({"text":"@app.command(\"set\")"})
    121. search_code({"text":"def set_value"})
    122. search_code({"text":"if dry_run or is_dry_run():"})
    123. read_file({"path":"src/devops_cli/commands/config.py","start_line":255,"end_line":305})
    124. read_file({"end_line":45,"path":"src/devops_cli/config/os_keyring.py","start_line":28})
    125. read_file({"end_line":305,"path":"src/devops_cli/config/os_keyring.py","start_line":260})
    126. read_file({"end_line":448,"path":"src/devops_cli/k8s/secret_push.py","start_line":436})
    127. read_file({"end_line":472,"path":"src/devops_cli/k8s/secret_push.py","start_line":462})
    128. read_file({"end_line":556,"path":"src/devops_cli/k8s/secret_push.py","start_line":543})
    129. read_file({"end_line":350,"path":"src/devops_cli/k8s/cluster_secrets.py","start_line":342})
    130. read_file({"end_line":700,"path":"src/devops_cli/k8s/cluster_secrets.py","start_line":686})
    131. read_file({"end_line":142,"path":"src/devops_cli/k8s/cluster_secrets.py","start_line":122})
    132. read_file({"end_line":392,"path":"src/devops_cli/lang/en/messages.py","start_line":386})
    133. read_file({"end_line":45,"path":"tests/support/cluster_secret_fakes.py","start_line":36})
    134. read_file({"end_line":795,"path":"k8s/README.md","start_line":783})
    135. read_file({"end_line":192,"path":"src/devops_cli/config/env.py","start_line":186})
    136. read_file({"end_line":26,"path":"docs/CONFIGURATION.md","start_line":14})
    137. list_files({"directory":"docs/commands"})
    138. search_code({"text":"test_config_commands"})
    139. search_code({"text":"docs/commands"})
    140. read_spec({"capability":"config-commands"})
    141. find_issues({"terms":"config set generate"})
    142. search_code({"text":"generator_for_option"})
    143. search_code({"text":"generator_option_names"})
    144. read_file({"path":"src/devops_cli/k8s/cluster_secrets.py","start_line":215,"end_line":225})
    145. read_file({"path":"src/devops_cli/k8s/cluster_secrets.py","start_line":125,"end_line":145})
    146. read_file({"path":"src/devops_cli/k8s/cluster_secrets.py","start_line":340,"end_line":352})
    147. read_file({"path":"src/devops_cli/k8s/secret_push.py","start_line":438,"end_line":448})
    148. read_file({"path":"src/devops_cli/k8s/secret_push.py","start_line":540,"end_line":552})
    149. read_file({"path":"src/devops_cli/k8s/cluster_secrets.py","start_line":685,"end_line":700})
    150. read_file({"path":"src/devops_cli/k8s/secret_push.py","start_line":465,"end_line":472})
    151. read_file({"path":"k8s/README.md","start_line":780,"end_line":795})
    152. list_files({"directory":"docs/commands"})
    153. list_files({"directory":"tests/commands"})
    154. read_file({"path":"src/devops_cli/commands/config.py","start_line":262,"end_line":300})
    155. read_file({"path":"src/devops_cli/config/os_keyring.py","start_line":262,"end_line":302})
    156. read_file({"path":"src/devops_cli/config/env.py","start_line":185,"end_line":193})
    157. read_file({"path":"docs/CONFIGURATION.md","start_line":16,"end_line":26})
    158. read_spec({"capability":"config-commands"})
    159. read_file({"end_line":392,"path":"src/devops_cli/lang/en/messages.py","start_line":385})
    160. read_file({"end_line":42,"path":"src/devops_cli/config/os_keyring.py","start_line":30})
    161. read_file({"end_line":42,"path":"tests/support/cluster_secret_fakes.py","start_line":35})
    162. read_file({"path":"src/devops_cli/k8s/cluster_secrets.py","start_line":210,"end_line":225})
    163. read_file({"path":"src/devops_cli/k8s/secret_push.py","start_line":535,"end_line":560})
    164. read_file({"path":"k8s/README.md","start_line":780,"end_line":798})
    165. search_code({"text":"generator_for_option"})
    166. read_file({"path":"src/devops_cli/k8s/cluster_secrets.py","start_line":108,"end_line":142})
    167. read_file({"path":"src/devops_cli/k8s/cluster_secrets.py","start_line":336,"end_line":360})
    168. read_file({"path":"src/devops_cli/k8s/secret_push.py","start_line":430,"end_line":475})
    169. read_file({"path":"src/devops_cli/k8s/secret_push.py","start_line":538,"end_line":560})
    170. read_file({"path":"src/devops_cli/commands/config.py","start_line":255,"end_line":340})
    171. search_code({"text":"generator_for_option"})
    172. read_file({"path":"k8s/README.md","start_line":778,"end_line":798})
    173. list_files({"directory":"tests/commands"})
    174. list_files({"directory":"docs/commands"})
    175. search_code({"text":"devops config set"})
    176. read_file({"path":"src/devops_cli/config/os_keyring.py","start_line":255,"end_line":305})
    177. search_code({"text":"def credential"})
    178. file_symbols({"path":"tests/commands/test_config_commands.py"})
    179. read_file({"path":"src/devops_cli/config/env.py","start_line":150,"end_line":200})
    180. read_file({"path":"docs/commands/config.md","start_line":1,"end_line":20})
    181. file_symbols({"path":"src/devops_cli/k8s/cluster_secrets.py"})
    182. search_code({"text":"keyring_sources"})
    183. read_file({"path":"src/devops_cli/config/os_keyring.py","start_line":28,"end_line":45})
    184. list_files({"directory":"tests/support"})
    185. read_file({"path":"src/devops_cli/k8s/cluster_secrets.py","start_line":44,"end_line":70})
    186. read_file({"path":"src/devops_cli/commands/config.py","start_line":255,"end_line":320})
    187. list_files({"directory":""})
    188. search_code({"text":"generator_for_option"})
    189. read_file({"path":"src/devops_cli/commands/config.py","start_line":255,"end_line":360})
    190. read_file({"path":"src/devops_cli/k8s/cluster_secrets.py","start_line":120,"end_line":150})
    191. read_file({"end_line":70,"path":"src/devops_cli/k8s/cluster_secrets.py","start_line":44})
    192. read_file({"end_line":370,"path":"src/devops_cli/k8s/cluster_secrets.py","start_line":320})
    193. search_code({"text":"generator=SecretGenerator"})
    194. search_code({"text":"for_credential("})
    195. read_file({"end_line":400,"path":"src/devops_cli/k8s/cluster_secrets.py","start_line":200})
    196. read_file({"end_line":600,"path":"src/devops_cli/k8s/cluster_secrets.py","start_line":465})
    197. search_code({"text":"mcp.token"})
    198. read_file({"end_line":205,"path":"src/devops_cli/config/env.py","start_line":170})
    199. read_file({"end_line":795,"path":"k8s/README.md","start_line":780})
    200. read_file({"end_line":35,"path":"docs/CONFIGURATION.md","start_line":1})
    201. search_code({"text":"CONFIGURATION.md"})
    202. list_files({"directory":"docs/commands"})
    203. search_code({"text":"takes a key that names a settings field with a value"})
    204. list_files({"directory":"src/devops_cli/docs"})
    205. read_file({"end_line":830,"path":"src/devops_cli/docs/generator.py","start_line":760})
    206. search_code({"text":"class generated"})
    207. search_code({"text":"def docs"})
    208. list_files({"directory":"src/devops_cli/commands/ci"})
    209. read_file({"end_line":2540,"path":"src/devops_cli/commands/ci.py","start_line":2480})
    210. search_code({"text":"CONST_DOCS_INVENTORY"})
    211. read_file({"end_line":310,"path":"src/devops_cli/config/os_keyring.py","start_line":270})
    212. search_code({"text":"def require_persistent_keyring"})
    213. read_file({"end_line":450,"path":"src/devops_cli/k8s/secret_push.py","start_line":428})
    214. read_file({"end_line":562,"path":"src/devops_cli/k8s/secret_push.py","start_line":540})
    215. read_file({"end_line":720,"path":"src/devops_cli/k8s/cluster_secrets.py","start_line":660})
    216. search_code({"text":"def keyring_sources"})
    217. search_code({"text":"def test("})
    218. search_code({"text":"get_check_spec(\"test\")"})
    219. read_file({"end_line":2380,"path":"src/devops_cli/commands/ci.py","start_line":2235})
    220. read_spec({"capability":"config-commands"})
    221. search_code({"text":"no other command writes them"})
    222. list_files({"directory":"docs"})
    223. search_code({"text":"def _resolve_test_targets"})
    224. search_code({"text":"tests/k8s/test_cluster_secret_plan.py"})
    225. read_file({"end_line":80,"path":"tests/support/fakes/keyring.py","start_line":1})
    226. read_file({"end_line":2100,"path":"src/devops_cli/commands/ci.py","start_line":2057})
    227. search_code({"text":"def check("})
    228. read_file({"end_line":30,"path":"docs/commands/config.md","start_line":1})
    229. read_file({"path":"src/devops_cli/commands/docs.py","start_line":135,"end_line":180})
    230. search_code({"text":"def check_docs"})
    231. search_code({"text":"CONFIGURATION"})
    232. read_file({"end_line":1450,"path":"src/devops_cli/docs/generator.py","start_line":1395})
    233. list_files({"directory":"tests/roadmap/stage"})
    234. list_files({"directory":"tests/http"})
    235. search_code({"text":"def dotted_set"})
    236. read_file({"end_line":200,"path":"tests/commands/test_config_commands.py","start_line":160})
    237. read_file({"end_line":3205,"path":"src/devops_cli/config/settings.py","start_line":3155})
    238. search_code({"text":"def store_keyring_secret"})
    239. read_file({"end_line":265,"path":"src/devops_cli/config/os_keyring.py","start_line":228})
    240. read_file({"end_line":645,"path":"src/devops_cli/k8s/cluster_secrets.py","start_line":605})
    241. search_code({"text":"_SECRET_FIELDS"})
    242. read_file({"end_line":175,"path":"src/devops_cli/config/env.py","start_line":130})
    243. search_code({"text":"--from-file"})
    244. search_code({"text":"--rotate"})
    245. search_code({"text":"config set --generate"})
    246. read_file({"end_line":820,"path":"k8s/README.md","start_line":796})
    247. search_code({"text":"This document is automatically generated from"})
    248. list_files({"directory":"docs"})
    249. read_file({"path":"src/devops_cli/docs/generator.py","start_line":690,"end_line":800})
    250. search_code({"text":"config set"})
    251. read_file({"path":"src/devops_cli/docs/generator.py","start_line":799,"end_line":870})
    252. search_code({"text":"generate_configuration_docs"})
    253. search_code({"text":"CONFIGURATION.md"})
    254. list_files({"directory":"tests/docs"})
    255. search_code({"text":"crawl4ai"})
    256. read_file({"path":"tests/docs/test_docs.py","start_line":515,"end_line":560})
    257. search_code({"text":"no other command writes them"})
    258. search_code({"text":"crawl4ai.api_token"})
    259. read_spec({"capability":"config-commands"})
    260. file_symbols({"path":"src/devops_cli/commands/config.py"})
    261. search_code({"text":"def keyring_sources"})
    262. read_file({"path":"src/devops_cli/commands/config.py","start_line":268,"end_line":325})
    263. read_file({"path":"src/devops_cli/k8s/cluster_secrets.py","start_line":685,"end_line":720})
    264. list_files({"directory":"docs/commands"})
    265. list_files({"directory":"tests/support"})
    266. search_code({"text":"from_file"})
    267. list_files({"directory":"tests/commands"})
    268. search_code({"text":"CONFIGURATION.md\""})
    269. search_code({"text":"docs generate"})
    270. search_code({"text":"generator_for_option"})
    271. read_file({"path":"src/devops_cli/k8s/cluster_secrets.py","start_line":120,"end_line":150})
    272. read_file({"path":"src/devops_cli/k8s/secret_push.py","start_line":430,"end_line":450})
    273. read_file({"path":"src/devops_cli/k8s/secret_push.py","start_line":540,"end_line":562})
    274. search_code({"text":"_CRAWL4AI_TOKEN = KeyringSource.for_credential"})
    275. search_code({"text":"CRAWL4AI_ENV_NAME,"})
    276. read_file({"path":"src/devops_cli/k8s/cluster_secrets.py","start_line":336,"end_line":352})
    277. search_code({"text":"_store_generated"})
    278. search_code({"text":"generator_option_names"})
    279. read_file({"path":"src/devops_cli/config/os_keyring.py","start_line":281,"end_line":305})
    280. read_file({"path":"src/devops_cli/config/env.py","start_line":183,"end_line":195})
    281. search_code({"text":"def require_persistent_keyring"})
    282. search_code({"text":"def test_config_set_"})
    283. read_file({"path":"src/devops_cli/k8s/cluster_secrets.py","start_line":200,"end_line":230})
    284. read_file({"path":"src/devops_cli/k8s/cluster_secrets.py","start_line":110,"end_line":150})
    285. search_code({"text":"def keyring_sources"})
    286. search_code({"text":"name=\"crawl4ai\""})
    287. read_file({"path":"src/devops_cli/k8s"})
    288. read_file({"path":"src/devops_cli/k8s/cluster"})
    289. read_file({"path":"src/devops_cli/k8s"})
    290. read_file({"path":"src/devops_cli/k8s/cluster"})
    291. read_file({"path":"src/devops_cli/k8s","start_line":1})
    292. read_file({"path":"src/devops_cli/k8s/cluster_secrets.py","start_line":335,"end_line":360})
    293. read_file({"path":"src/devops_cli/k8s/cluster_secrets.py","start_line":685,"end_line":725})
    294. read_file({"path":"src/devops_cli/commands/config.py","start_line":240,"end_line":330})
    295. read_file({"path":"src/devops_cli/k8s/secret_push.py","start_line":420,"end_line":460})
    296. read_file({"end_line":560,"path":"src/devops_cli/k8s/secret_push.py","start_line":535})
    297. search_code({"text":"def keyring_write"})
    298. read_file({"end_line":815,"path":"src/devops_cli/docs/generator.py","start_line":790})
    299. read_file({"end_line":545,"path":"tests/docs/test_docs.py","start_line":515})
    300. read_spec({"capability":"config-commands"})
    301. read_file({"end_line":1360,"path":"src/devops_cli/docs/generator.py","start_line":1350})
    302. read_file({"end_line":800,"path":"k8s/README.md","start_line":780})
    303. search_code({"text":"def keyring_read"})
    304. search_code({"text":"def require_persistent_keyring"})
    305. search_code({"text":"keyring_store"})
    306. list_files({"directory":"tests/commands"})
    307. read_file({"path":"tests/commands/test_config_commands.py","start_line":1,"end_line":70})
    308. search_code({"text":"crawl4ai.api_token"})
    309. read_file({"end_line":200,"path":"src/devops_cli/config/env.py","start_line":170})
    310. read_file({"end_line":735,"path":"src/devops_cli/docs/generator.py","start_line":720})
    311. read_file({"end_line":300,"path":"src/devops_cli/lang/en/messages.py","start_line":270})
    312. search_code({"text":"from_file_and_value"})
    313. search_code({"text":"class ConfigMessages"})
    314. search_code({"text":"_SECRET_FIELDS"})
    315. search_code({"text":"from_file: str"})
    316. list_files({"directory":"docs/commands"})
    317. read_file({"path":"docs/CONFIGURATION.md","start_line":1,"end_line":6})
    318. search_code({"text":"_store_generated"})
    319. search_code({"text":"generator_option_names"})
    320. search_code({"text":"def plan_push"})
    321. list_files({"directory":"tests/support"})
    322. search_code({"text":"class FakeCluster"})
    323. search_code({"text":"generator_for_option"})
    324. search_code({"text":"generator=SecretGenerator"})
    325. search_code({"text":"generator_for_option"})
    326. search_code({"text":"_CRAWL4AI_TOKEN"})
    327. search_code({"text":"def keyring_sources"})
    328. read_file({"path":"src/devops_cli/k8s/cluster_secrets.py","start_line":200,"end_line":400})
    329. read_file({"path":"src/devops_cli/k8s/cluster_secrets.py","start_line":440,"end_line":560})
    330. read_file({"path":"src/devops_cli/k8s/cluster_secrets.py","start_line":660,"end_line":720})
    331. search_code({"text":"mcp.token"})
    332. read_file({"path":"k8s/README.md","start_line":780,"end_line":800})
    333. read_file({"path":"src/devops_cli/commands/config.py","start_line":255,"end_line":340})
    334. read_file({"path":"docs/CONFIGURATION.md","start_line":1,"end_line":8})
    335. read_file({"path":"src/devops_cli/docs/generator.py","start_line":725,"end_line":735})
    336. read_file({"path":"src/devops_cli/docs/generator.py","start_line":793,"end_line":810})
    337. read_file({"path":"src/devops_cli/docs/generator.py","start_line":1350,"end_line":1360})
    338. read_file({"path":"tests/docs/test_docs.py","start_line":520,"end_line":540})
    339. read_file({"path":"src/devops_cli/lang/en/messages.py","start_line":383,"end_line":395})
    340. read_file({"path":"src/devops_cli/config/env.py","start_line":185,"end_line":196})
    341. read_file({"path":"src/devops_cli/config/settings.py","start_line":245,"end_line":255})
    342. read_file({"path":"src/devops_cli/config/os_keyring.py","start_line":280,"end_line":305})
    343. read_file({"path":"src/devops_cli/k8s/secret_push.py","start_line":435,"end_line":475})
    344. read_file({"path":"src/devops_cli/k8s/secret_push.py","start_line":545,"end_line":562})
    345. read_file({"path":"tests/support/cluster_secret_fakes.py","start_line":30,"end_line":45})
    346. read_spec({"capability":"true"})
    347. read_spec({"capability":"config-commands"})
    348. search_code({"text":"def generator("})
    349. search_code({"text":"uv run devops ci docs"})
    350. search_code({"text":"test_the_crawl4ai_token_is_one_managed_credential_for_two_secrets"})
    351. read_file({"path":"src/devops_cli/k8s/cluster_secrets.py","start_line":136,"end_line":145})
    352. read_file({"path":"src/devops_cli/config/env.py","start_line":140,"end_line":200})
    353. read_spec({"capability":"config-commands","requirement":"devops config set writes the key that it names"})
    354. search_code({"text":"def generator_for"})
    355. search_code({"text":"_store_generated"})
    356. read_file({"path":"tests/docs/test_docs.py","start_line":25,"end_line":45})
    357. list_files({"directory":"docs"})
    358. list_files({"directory":"tests/docs"})
    359. list_files({"directory":"tests/roadmap/stage"})
    360. search_code({"text":"def require_persistent_keyring"})
    361. search_code({"text":"crawl4ai"})
    362. search_code({"text":"CONFIGURATION.md"})
    363. search_code({"text":"docs/CONFIGURATION.md"})
    364. search_code({"text":"def test_"})
    365. file_symbols({"path":"tests/docs/test_docs_inventory.py"})
    366. list_files({"directory":"docs/commands"})
    367. search_code({"text":"def check"})
    368. read_file({"path":"docs/commands/config.md","start_line":1,"end_line":40})
    369. search_code({"text":"def secret_line"})
    370. read_file({"path":"src/devops_cli/k8s/secret_push.py","start_line":476,"end_line":545})
    371. read_file({"path":"src/devops_cli/k8s/secret_push.py","start_line":380,"end_line":435})
    372. read_file({"path":"src/devops_cli/k8s/secret_push.py","start_line":676,"end_line":710})
    373. list_files({"directory":"src/devops_cli/lang"})
    374. read_file({"path":"tests/lang/test_language_catalogs.py","start_line":1,"end_line":60})
    375. file_symbols({"path":"src/devops_cli/docs/generator.py"})
    376. search_code({"text":"entry.generator"})
    377. search_code({"text":"for_credential"})
    378. read_file({"path":"src/devops_cli/k8s/cluster_secrets.py","start_line":620,"end_line":645})

    Tool calls: file_symbols=8 (empty=0), find_issues=3 (empty=0), list_files=34 (empty=0), read_file=166 (empty=0), read_issue=4 (empty=0), read_spec=16 (empty=0), references=1 (empty=0), search_code=146 (empty=24)

    The stage job read the open pull requests and their files in 1 GraphQL request(s).

    The plan request held these comments of the item whole: #3998 (comment), #3998 (comment), #3998 (comment).

  10. 17 remaining items

  11. added
    status/in-review
    and removed
    status/in-progress
    on Nov 18, 2026
  12. devops-cli-service commented on Nov 18, 2026

    @devops-cli-service
    Contributor

    Pull request #6318 is ready for review. The checks passed.

    Spend: 168 model requests, 12554815 input tokens, 63216 output tokens.

  13. removed
    owner/service
    on Nov 18, 2026
  14. removed
    status/in-review
    on Nov 18, 2026
  15. devops-cli-service commented on Nov 18, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-18 20:24 UTC

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/mediumpriority/p2-mediumscope/configsource/agenttype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions