-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VAULT-30189: enos_remote_exec: Use non-static ID as prefix for scripts (
#21) * VAULT-30189: enos_remote_exec: Use non-static ID as prefix for scripts When `enos_remote_exec` executes a script on a remote machine it copies the contents to a local place on the target disk before executing it. Because scripts can be re-used by different resources but provided different env vars, we used to consider the env vars as part of the SHA but it looks like it was it was erroneously removed[0] at some point. What we have now is a case where multiple resources can use the same script and therefore the same SHA in parallel. That leads to a race where multiple resources are writing, executing, and cleaning up scripts with the same SHA. Instead, of reverting to the prior behavior, we instead now generate a non-static ID for each `enos_remote_exec` resource at apply time. When we copy over script contents we prepend this ID, along with the content SHA, to prevent any script mod races. [0] 44fe793 * linter: fix lastest linter issues and pin workflows Signed-off-by: Ryan Cragun <me@ryan.ec>
- Loading branch information
1 parent
23e2a65
commit 5d34826
Showing
10 changed files
with
21 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.5.4 | ||
0.5.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters