-
Notifications
You must be signed in to change notification settings - Fork 111
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
Update AES Encryption to 256bits for script bootstrappers #1405
base: main
Are you sure you want to change the base?
Conversation
@@ -17,9 +32,10 @@ public class AesEncryption | |||
|
|||
readonly byte[] key; | |||
|
|||
public AesEncryption(string password) | |||
public AesEncryption(string password, int keySizeBits) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Making the key size configurable allows us to upgrade the 3 components (scripts, step package, variables file) separately.
|
||
readonly int keySizeBits; | ||
|
||
const int BlockSizeBits = 128; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Block size can remain at 128
@@ -8,6 +8,21 @@ namespace Calamari.Common.Plumbing.Extensions | |||
{ | |||
public class AesEncryption | |||
{ | |||
//Key size used to encrypt variables for scripts (bash/powershell etc.) | |||
//The variables are decrypted in the respective bootstrapper scripts | |||
public static readonly int ScriptBootstrapKeySize = 256; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR only increases the key size for scripts
[sc-98850]