Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions internal/pkg/secret/password_protection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ config.properties/testPassword = ENC[AES/CBC/PKCS5Padding,data:SclgTBDDeLwccqtsa
name: "ValidTestCase: encrypt config file with last line as Comment, create new dek",
args: &args{
masterKeyPassphrase: "abc123",
contents: "testPassword=password\n# LAST LINE SHOUD NOT BE DELETED",
contents: "testPassword=password\n# LAST LINE SHOULD NOT BE DELETED",
configFilePath: "/tmp/securePass987/encrypt/config.properties",
localSecureConfigPath: "/tmp/securePass987/encrypt/secureConfig.properties",
secureDir: "/tmp/securePass987/encrypt",
Expand All @@ -262,10 +262,9 @@ config.properties/testPassword = ENC[AES/CBC/PKCS5Padding,data:SclgTBDDeLwccqtsa
},
wantErr: false,
wantConfigFile: `testPassword = ${securepass:/tmp/securePass987/encrypt/secureConfig.properties:config.properties/testPassword}

# LAST LINE SHOUD NOT BE DELETED
config.providers = securepass
config.providers.securepass.class = io.confluent.kafka.security.config.provider.SecurePassConfigProvider
# LAST LINE SHOULD NOT BE DELETED
`,
wantSecretsFile: `_metadata.master_key.0.salt = de0YQknpvBlnXk0fdmIT2nG2Qnj+0srV8YokdhkgXjA=
_metadata.symmetric_key.0.created_at = 1984-04-04 00:00:00 +0000 UTC
Expand Down