Skip to content

feat(k8s): derived push entries, Secret types, one stack list - #2618

Merged
dan-petty merged 2 commits into
mainfrom
feat/2008-stack-names-secret-type-derived
Oct 29, 2026
Merged

dan-petty merged 2 commits into
mainfrom
feat/2008-stack-names-secret-type-derived

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The k8s commands declare the stack names once, in CONST_K8S_STACKS. _resolve_stacks, the deploy-stack summary and the --stack help of push-secrets and devcontainer bootstrap-k8s read it. stack_lifecycle.py keeps no second VALID_STACKS.

The cluster Secret push table gets a derived source for #1391, #1392 and #1393: a template whose fields are keyring, setting or literal values, each quoted with urllib.parse.quote(..., safe=""). The push resolves derived entries after every other entry, so an input sees the value that the push adopts or generates. A derived value is never adopted, generated or stored, and a live value that differs needs --rotate. A row may name its Secret type: Opaque by default, or kubernetes.io/basic-auth.

CONST_K8S_MATTERMOST_URL holds Mattermost's in-cluster base URL. No manifest under k8s/ changes.

Closes #2008

The k8s commands declare the stack names once, in CONST_K8S_STACKS.
_resolve_stacks, the deploy-stack summary and the --stack help of
push-secrets and devcontainer bootstrap-k8s read it, and
stack_lifecycle.py keeps no second VALID_STACKS.

The cluster Secret push table gets a derived source: a template whose
fields are keyring, setting or literal values, each quoted with
urllib.parse.quote(..., safe=""). The push resolves derived entries
after every other entry, so an input sees the value the push adopts or
generates. A derived value is never adopted, generated or stored, and a
differing live value needs --rotate. A row may name its Secret type
(Opaque by default, or kubernetes.io/basic-auth).

CONST_K8S_MATTERMOST_URL holds Mattermost's in-cluster base URL for
the rows of #1391, #1392 and #1393.
@dan-petty

Copy link
Copy Markdown
Owner Author

Test results

Fail first. Before the change, 9 new tests failed:

  • 8 push tests failed on import, because DerivedSource, ClusterSecret.secret_type and CONST_K8S_MATTERMOST_URL did not exist:
    • test_a_derived_connection_string_quotes_a_literal_user_and_a_generated_password
    • test_a_derived_entry_before_its_input_is_built_from_the_adopted_value
    • test_a_derived_hook_url_is_skipped_until_its_managed_input_has_a_value
    • test_the_plan_and_the_dry_run_name_a_derived_entry_with_no_value
    • test_the_dry_run_lists_the_derived_reads_where_the_push_makes_them
    • test_a_differing_derived_value_needs_rotate
    • test_a_pushed_manifest_carries_the_secret_type_of_its_row
    • test_keyring_only_keys_count_the_keyring_inputs_of_a_derived_entry
  • test_every_help_text_that_lists_stacks_names_each_stack_and_all failed on its assertion. The deploy-stack summary did not name infra, llm, logging, gitea and all. The bootstrap-k8s --stack help named monitoring.

Pass after.

Scope notes.

@dan-petty
dan-petty marked this pull request as ready for review October 29, 2026 03:57
@dan-petty
dan-petty merged commit 3634c6f into main Oct 29, 2026
17 checks passed
@dan-petty
dan-petty deleted the feat/2008-stack-names-secret-type-derived branch October 29, 2026 04:17
dan-petty pushed a commit that referenced this pull request Oct 29, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.15.0](v0.14.0...v0.15.0)
(2026-10-29)


### Features

* **k8s:** derived push entries, Secret types, one stack list
([#2618](#2618))
([3634c6f](3634c6f)),
closes [#2008](#2008)
* **k8s:** image-pins refuses an image on the latest tag
([#2617](#2617))
([548b3ba](548b3ba)),
closes [#2093](#2093)
* **monitoring:** alert when a noeviction Valkey nears its bound
([#2615](#2615))
([f452644](f452644)),
closes [#2094](#2094)
* **review:** golangci-lint runs offline in the review sandbox
([#2622](#2622))
([20915ce](20915ce)),
closes [#2129](#2129)
* **review:** the SARIF export writes how each tool run ended
([#2620](#2620))
([8f8ef44](8f8ef44)),
closes [#2100](#2100)


### Bug Fixes

* **release:** parse release pull request number safely in urgent merge
([#2621](#2621))
([262244d](262244d))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(k8s): deploy-stack declares its stack names once, and a cluster secret row can name its Secret type and hold derived entries

1 participant