Skip to content

[master] Make x509_v2 compound match detection use match runner - #64302

Merged
dwoz merged 7 commits into
saltstack:masterfrom
lkubb:x509v2-compound-match-runner
Dec 16, 2023
Merged

[master] Make x509_v2 compound match detection use match runner#64302
dwoz merged 7 commits into
saltstack:masterfrom
lkubb:x509v2-compound-match-runner

Conversation

@lkubb

@lkubb lkubb commented May 18, 2023

Copy link
Copy Markdown
Contributor

What does this PR do?

Replaces the current x509_v2 compound match validation (using the match.compound execution module on the requesting minion, inherited from the old modules) with validation that is executed on the master (new match runner, merged in #63297).

This is a breaking change (master config needs to be updated, only exact pillar value matching supported), but the old method is severely flawed and should not exist imo.

What issues does this PR fix or reference?

Fixes: #63278

Previous Behavior

CA minion asks the minion requesting a certificate if it is authorized to receive it under a signing policy.

New Behavior

CA minion asks the master if the requesting minion is authorized to receive a certificate under a signing policy.

Merge requirements satisfied?

Commits signed with GPG?

Yes

@lkubb
lkubb requested a review from a team as a code owner May 18, 2023 17:46
@lkubb
lkubb requested review from garethgreenaway and removed request for a team May 18, 2023 17:46
@salt-project-bot-prod-environment salt-project-bot-prod-environment Bot changed the title Make x509_v2 compound match detection use match runner [master] Make x509_v2 compound match detection use match runner May 18, 2023
@lkubb
lkubb temporarily deployed to ci May 18, 2023 18:24 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci May 18, 2023 18:24 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci May 18, 2023 18:24 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci May 18, 2023 19:42 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci May 18, 2023 19:42 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci May 18, 2023 19:42 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci May 18, 2023 20:21 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci May 18, 2023 20:21 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci May 18, 2023 20:21 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci May 23, 2023 21:46 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci May 23, 2023 22:13 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci May 23, 2023 22:13 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci May 23, 2023 23:42 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci May 23, 2023 23:42 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci May 23, 2023 23:42 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci July 5, 2023 13:45 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci July 5, 2023 13:45 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci July 5, 2023 13:57 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci July 5, 2023 13:58 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci July 5, 2023 14:03 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci July 5, 2023 14:06 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci July 5, 2023 18:53 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci July 5, 2023 18:53 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci August 18, 2023 00:27 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci August 18, 2023 00:28 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci August 18, 2023 00:28 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci August 18, 2023 00:56 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci August 18, 2023 00:56 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci August 18, 2023 00:56 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci August 18, 2023 00:56 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci August 18, 2023 00:56 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci August 18, 2023 00:56 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci August 25, 2023 21:41 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci August 25, 2023 21:41 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci August 25, 2023 21:41 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci August 25, 2023 21:41 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci August 25, 2023 22:00 — with GitHub Actions Inactive
@lkubb
lkubb temporarily deployed to ci August 25, 2023 22:03 — with GitHub Actions Inactive
@lkubb

lkubb commented Sep 14, 2023

Copy link
Copy Markdown
Contributor Author

@garethgreenaway Mind commenting on/reviewing this relatively small PR? It would make sense to get this breaking change to the x509_v2 modules out of the way as early as possible after their introduction, not sure how far away 3007 is.

Since they are security snakeoil, I don't think (hope) too many people use compound expressions currently, esp. since they are discouraged from in the v2 docs (not the original ones though).

@lkubb

lkubb commented Nov 15, 2023

Copy link
Copy Markdown
Contributor Author

@garethgreenaway Friendly ping. :)

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.

[FEATURE REQUEST] match.compound runner

3 participants