Skip to content

[master]gpg_decrypt_must_succeed default from False to True - #64471

Merged
cmcmarrow merged 6 commits into
saltstack:masterfrom
cmcmarrow:gpg_decrypt_must_succeed_true
Jun 21, 2023
Merged

cmcmarrow merged 6 commits into
saltstack:masterfrom
cmcmarrow:gpg_decrypt_must_succeed_true

Conversation

@cmcmarrow

@cmcmarrow cmcmarrow commented Jun 12, 2023 •

Copy link
Copy Markdown
Contributor

What does this PR do?

change default from False to True for gpg_decrypt_must_succeed

What issues does this PR fix or reference?

Fixes: #64462

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes

@cmcmarrow
cmcmarrow requested a review from a team as a code owner June 12, 2023 20:59
@cmcmarrow
cmcmarrow requested review from whytewolf and removed request for a team June 12, 2023 20:59
@salt-project-bot-prod-environment salt-project-bot-prod-environment Bot changed the title pg_decrypt_must_succeed default from False to True [3006.x] pg_decrypt_must_succeed default from False to True Jun 12, 2023
@cmcmarrow cmcmarrow changed the title [3006.x] pg_decrypt_must_succeed default from False to True gpg_decrypt_must_succeed default from False to True Jun 12, 2023
MKLeb
MKLeb previously approved these changes Jun 12, 2023
whytewolf
whytewolf previously approved these changes Jun 12, 2023
@Ch3LL

Ch3LL commented Jun 13, 2023

Copy link
Copy Markdown
Contributor

This needs to be pointed to the master branch

@cmcmarrow
cmcmarrow temporarily deployed to ci June 13, 2023 14:57 — with GitHub Actions Inactive
@cmcmarrow
cmcmarrow temporarily deployed to ci June 13, 2023 14:57 — with GitHub Actions Inactive
@cmcmarrow
cmcmarrow temporarily deployed to ci June 13, 2023 14:57 — with GitHub Actions Inactive
@cmcmarrow
cmcmarrow temporarily deployed to ci June 13, 2023 14:57 — with GitHub Actions Inactive
@cmcmarrow
cmcmarrow temporarily deployed to ci June 13, 2023 15:14 — with GitHub Actions Inactive
@cmcmarrow
cmcmarrow temporarily deployed to ci June 13, 2023 15:22 — with GitHub Actions Inactive
@cmcmarrow
cmcmarrow changed the base branch from 3006.x to master June 16, 2023 16:16
@cmcmarrow
cmcmarrow dismissed stale reviews from MKLeb and whytewolf June 16, 2023 16:16

The base branch was changed.

@salt-project-bot-prod-environment salt-project-bot-prod-environment Bot changed the title gpg_decrypt_must_succeed default from False to True [master]gpg_decrypt_must_succeed default from False to True Jun 16, 2023
@cmcmarrow
cmcmarrow temporarily deployed to ci June 16, 2023 17:47 — with GitHub Actions Inactive
@cmcmarrow
cmcmarrow temporarily deployed to ci June 16, 2023 17:47 — with GitHub Actions Inactive
@cmcmarrow
cmcmarrow temporarily deployed to ci June 16, 2023 17:47 — with GitHub Actions Inactive
@cmcmarrow
cmcmarrow temporarily deployed to ci June 16, 2023 17:47 — with GitHub Actions Inactive
@cmcmarrow
cmcmarrow temporarily deployed to ci June 16, 2023 18:05 — with GitHub Actions Inactive
@cmcmarrow
cmcmarrow temporarily deployed to ci June 16, 2023 18:07 — with GitHub Actions Inactive
@cmcmarrow
cmcmarrow temporarily deployed to ci June 16, 2023 19:09 — with GitHub Actions Inactive
@cmcmarrow
cmcmarrow temporarily deployed to ci June 16, 2023 19:09 — with GitHub Actions Inactive
@cmcmarrow
cmcmarrow temporarily deployed to ci June 19, 2023 06:22 — with GitHub Actions Inactive
@cmcmarrow
cmcmarrow temporarily deployed to ci June 19, 2023 06:22 — with GitHub Actions Inactive
@cmcmarrow
cmcmarrow temporarily deployed to ci June 19, 2023 06:22 — with GitHub Actions Inactive
@cmcmarrow
cmcmarrow temporarily deployed to ci June 19, 2023 06:29 — with GitHub Actions Inactive
@cmcmarrow
cmcmarrow temporarily deployed to ci June 19, 2023 06:29 — with GitHub Actions Inactive
@cmcmarrow
cmcmarrow temporarily deployed to ci June 19, 2023 06:29 — with GitHub Actions Inactive
@cmcmarrow
cmcmarrow temporarily deployed to ci June 19, 2023 06:29 — with GitHub Actions Inactive
@cmcmarrow
cmcmarrow temporarily deployed to ci June 19, 2023 06:29 — with GitHub Actions Inactive
@cmcmarrow
cmcmarrow temporarily deployed to ci June 19, 2023 06:29 — with GitHub Actions Inactive
@cmcmarrow
cmcmarrow temporarily deployed to ci June 20, 2023 21:22 — with GitHub Actions Inactive
@cmcmarrow
cmcmarrow temporarily deployed to ci June 20, 2023 21:22 — with GitHub Actions Inactive
@cmcmarrow
cmcmarrow temporarily deployed to ci June 20, 2023 21:23 — with GitHub Actions Inactive
@cmcmarrow
cmcmarrow temporarily deployed to ci June 20, 2023 21:40 — with GitHub Actions Inactive
@cmcmarrow
cmcmarrow temporarily deployed to ci June 20, 2023 21:44 — with GitHub Actions Inactive
@cmcmarrow
cmcmarrow temporarily deployed to ci June 20, 2023 21:53 — with GitHub Actions Inactive
@cmcmarrow
cmcmarrow temporarily deployed to ci June 21, 2023 02:29 — with GitHub Actions Inactive
@cmcmarrow
cmcmarrow temporarily deployed to ci June 21, 2023 02:29 — with GitHub Actions Inactive
@cmcmarrow
cmcmarrow temporarily deployed to ci June 21, 2023 02:29 — with GitHub Actions Inactive
@cmcmarrow
cmcmarrow temporarily deployed to ci June 21, 2023 02:29 — with GitHub Actions Inactive
@cmcmarrow
cmcmarrow temporarily deployed to ci June 21, 2023 02:29 — with GitHub Actions Inactive
@cmcmarrow
cmcmarrow temporarily deployed to ci June 21, 2023 02:29 — with GitHub Actions Inactive
@cmcmarrow
cmcmarrow merged commit b0bf7eb into saltstack:master Jun 21, 2023
dwoz added a commit to dwoz/salt that referenced this pull request Jun 30, 2026
Flip the default of gpg_decrypt_must_succeed from False to True so that
a GPG decryption failure raises SaltRenderError instead of silently
returning the encrypted ciphertext. Without this, a locked keychain or
missing private key causes file.managed (contents_pillar) to write the
raw GPG-armored ciphertext to disk in place of the decrypted secret,
exposing encrypted-at-rest data.

3007.x, 3008.x, and master shipped this default via PR saltstack#64471
(2023-06-21). PR saltstack#61418 backported the option to 3006.x but the
default flip was not. This change brings 3006.x in line.

The warn_until("Chlorine", ...) deprecation block in the gpg renderer
is removed; Chlorine (3007) has shipped and the deprecation is now
realized via the default.

Behavior change: users who relied on silent decrypt failures must
explicitly set "gpg_decrypt_must_succeed: False" in their minion or
master config.

Fixes saltstack#41846

This branch was previously deployed

1 inactive deployment
ci — efaa0036 Deployed Jun 21, 2023 by cmcmarrow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[TECH DEBT] Change gpg_decrypt_must_succeed to default to True

4 participants