Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Security] Secvuln 8633 Consul configuration allowed repeated keys #21908

Conversation

sarahalsmiller
Copy link
Member

Description

  • Due to a known issue in hcl v1,
  • There is a potential for old unparsed rules to be in the cache, so I added an optional route to replicate the old behavior to maintain backwards compatibility when reading unparsed policies from the cache.

Testing & Reproduction steps

  • New tests pass

Links

hashicorp/hcl#704 Original HCL PR

PR Checklist

  • [ X] updated test coverage
  • external facing docs updated
  • appropriate backport labels added
  • not a security concern

@sarahalsmiller sarahalsmiller added the backport/all Apply backports for all active releases per .release/versions.hcl label Oct 31, 2024
@sarahalsmiller sarahalsmiller requested a review from a team as a code owner October 31, 2024 16:17
@github-actions github-actions bot added theme/acls ACL and token generation pr/dependencies PR specifically updates dependencies of project labels Oct 31, 2024
@sarahalsmiller sarahalsmiller force-pushed the SECVULN-8633-TOB-CONSUL24-17-Consul-configuration-allows-repeated-keys branch from 1938f0b to ead5aa5 Compare October 31, 2024 16:25
acl/policy.go Outdated Show resolved Hide resolved
@sarahalsmiller sarahalsmiller force-pushed the SECVULN-8633-TOB-CONSUL24-17-Consul-configuration-allows-repeated-keys branch 2 times, most recently from f25341c to 6160a2c Compare November 5, 2024 20:32
@sarahalsmiller sarahalsmiller force-pushed the SECVULN-8633-TOB-CONSUL24-17-Consul-configuration-allows-repeated-keys branch from c4cbb00 to 1cc3eb2 Compare November 7, 2024 22:30
Copy link
Collaborator

@dduzgun-security dduzgun-security left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Awesome work on that

@sarahalsmiller sarahalsmiller merged commit 32ce338 into main Nov 14, 2024
94 checks passed
@sarahalsmiller sarahalsmiller deleted the SECVULN-8633-TOB-CONSUL24-17-Consul-configuration-allows-repeated-keys branch November 14, 2024 15:57
@hc-github-team-consul-core hc-github-team-consul-core added backport/1.20 Changes are backported to 1.20 backport/ent/1.15 Changes are backported to 1.15 ent labels Nov 14, 2024
@hc-github-team-consul-core
Copy link
Collaborator

📣 Hi @sarahalsmiller! a backport is missing for this PR [21908] for versions [1.15,1.18,1.19,1.20] please perform the backport manually and add the following snippet to your backport PR description:

<details>
	<summary> Overview of commits </summary>
		- <<backport commit 1>>
		- <<backport commit 2>>
		...
</details>

3 similar comments
@hc-github-team-consul-core
Copy link
Collaborator

📣 Hi @sarahalsmiller! a backport is missing for this PR [21908] for versions [1.15,1.18,1.19,1.20] please perform the backport manually and add the following snippet to your backport PR description:

<details>
	<summary> Overview of commits </summary>
		- <<backport commit 1>>
		- <<backport commit 2>>
		...
</details>

@hc-github-team-consul-core
Copy link
Collaborator

📣 Hi @sarahalsmiller! a backport is missing for this PR [21908] for versions [1.15,1.18,1.19,1.20] please perform the backport manually and add the following snippet to your backport PR description:

<details>
	<summary> Overview of commits </summary>
		- <<backport commit 1>>
		- <<backport commit 2>>
		...
</details>

@hc-github-team-consul-core
Copy link
Collaborator

📣 Hi @sarahalsmiller! a backport is missing for this PR [21908] for versions [1.15,1.18,1.19,1.20] please perform the backport manually and add the following snippet to your backport PR description:

<details>
	<summary> Overview of commits </summary>
		- <<backport commit 1>>
		- <<backport commit 2>>
		...
</details>

@hc-github-team-consul-core
Copy link
Collaborator

📣 Hi @sarahalsmiller! a backport is missing for this PR [21908] for versions [1.15,1.20] please perform the backport manually and add the following snippet to your backport PR description:

<details>
	<summary> Overview of commits </summary>
		- <<backport commit 1>>
		- <<backport commit 2>>
		...
</details>

@hc-github-team-consul-core
Copy link
Collaborator

📣 Hi @sarahalsmiller! a backport is missing for this PR [21908] for versions [1.20] please perform the backport manually and add the following snippet to your backport PR description:

<details>
	<summary> Overview of commits </summary>
		- <<backport commit 1>>
		- <<backport commit 2>>
		...
</details>

5 similar comments
@hc-github-team-consul-core
Copy link
Collaborator

📣 Hi @sarahalsmiller! a backport is missing for this PR [21908] for versions [1.20] please perform the backport manually and add the following snippet to your backport PR description:

<details>
	<summary> Overview of commits </summary>
		- <<backport commit 1>>
		- <<backport commit 2>>
		...
</details>

@hc-github-team-consul-core
Copy link
Collaborator

📣 Hi @sarahalsmiller! a backport is missing for this PR [21908] for versions [1.20] please perform the backport manually and add the following snippet to your backport PR description:

<details>
	<summary> Overview of commits </summary>
		- <<backport commit 1>>
		- <<backport commit 2>>
		...
</details>

@hc-github-team-consul-core
Copy link
Collaborator

📣 Hi @sarahalsmiller! a backport is missing for this PR [21908] for versions [1.20] please perform the backport manually and add the following snippet to your backport PR description:

<details>
	<summary> Overview of commits </summary>
		- <<backport commit 1>>
		- <<backport commit 2>>
		...
</details>

@hc-github-team-consul-core
Copy link
Collaborator

📣 Hi @sarahalsmiller! a backport is missing for this PR [21908] for versions [1.20] please perform the backport manually and add the following snippet to your backport PR description:

<details>
	<summary> Overview of commits </summary>
		- <<backport commit 1>>
		- <<backport commit 2>>
		...
</details>

@hc-github-team-consul-core
Copy link
Collaborator

📣 Hi @sarahalsmiller! a backport is missing for this PR [21908] for versions [1.20] please perform the backport manually and add the following snippet to your backport PR description:

<details>
	<summary> Overview of commits </summary>
		- <<backport commit 1>>
		- <<backport commit 2>>
		...
</details>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/all Apply backports for all active releases per .release/versions.hcl pr/dependencies PR specifically updates dependencies of project theme/acls ACL and token generation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants