Skip to content

fix: open v3 plaintext envelopes before the enabled-gate in sshtunnel and freebox resolvers - #149

Merged
fclairamb merged 7 commits into
mainfrom
fix/ssh-tunnel-plaintext-envelope-decrypt
Jul 19, 2026
Merged

fclairamb merged 7 commits into
mainfrom
fix/ssh-tunnel-plaintext-envelope-decrypt

Conversation

@fclairamb

Copy link
Copy Markdown
Owner

Summary

  • Fixed a regression from the checks / integrations (secrets) credential-leak fix: with SP_ENCRYPTION_MASTER_KEY unset, every check tunneled through an SSH bastion failed on every execution (cannot decrypt the ssh check credentials... (encryption disabled)), even though the referenced SSH check itself ran fine.
  • sshtunnel.effectiveConfig and Freebox resolveAppToken now open a v3 plaintext credential envelope first (mirroring checkjobsvc.MergeJobSecrets's existing pattern) and only fall back to the key-requiring "encryption disabled" error for envelopes that actually need a key.
  • Added test coverage: plaintext-envelope success path (including nil-creds safety) for both resolvers, and confirmed the key-requiring failure path still triggers correctly on a real (non-plaintext) encrypted envelope.

Test plan

  • make build-backend lint-back test — clean
  • Verified end-to-end against the running dev server: previously-down tunneled HTTP check "RabbitMQ" (4d7dda60-6af0-47dd-bf3e-cf4a996e0495, tunneled through SSH check a347e725-2f89-4069-bc32-ba275df3d681) now reports status: up with tunnel_setup_ms present and no tunnel_failed

@fclairamb
fclairamb enabled auto-merge (squash) July 19, 2026 19:28
@fclairamb
fclairamb merged commit 4223bdb into main Jul 19, 2026
11 checks passed
@fclairamb
fclairamb deleted the fix/ssh-tunnel-plaintext-envelope-decrypt branch July 19, 2026 19:46
@fclairamb fclairamb mentioned this pull request Jul 19, 2026
fclairamb added a commit that referenced this pull request Jul 19, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.5.0](v0.4.1...v0.5.0)
(2026-07-19)


### Features

* batch 2026-07-16 — deported agents, SSH tunnels everywhere, incident
comments, OAuth self-revocation, and a critical secrets-leak fix
([#145](#145))
([994bc85](994bc85))
* batch 2026-07-19 — escalation org default + assignment picker,
migration consolidation
([#148](#148))
([bb585a8](bb585a8))


### Bug Fixes

* **deps:** update dependency docusaurus-plugin-llms to ^0.5.0
([#147](#147))
([1d30a78](1d30a78))
* **deps:** update go dependencies (non-major)
([#139](#139))
([6906133](6906133))
* **deps:** update module github.com/go-ldap/ldap/v3 to v3.4.14
([#141](#141))
([b7166d6](b7166d6))
* **deps:** update module github.com/gosnmp/gosnmp to v1.44.0
([#144](#144))
([a1c5897](a1c5897))
* open v3 plaintext envelopes before the enabled-gate in sshtunnel and
freebox resolvers
([#149](#149))
([4223bdb](4223bdb))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
This was referenced Sep 8, 2026
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.

1 participant