Skip to content

Commit

Permalink
move fips for ec2 to build.gradle (which fixes the docs tests)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakelandis committed Nov 8, 2023
1 parent 54fe5ac commit 57ff496
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 4 additions & 1 deletion plugins/discovery-ec2/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ tasks.register("writeTestJavaPolicy") {
"permission org.bouncycastle.crypto.CryptoServicesPermission \"exportSecretKey\";",
"permission org.bouncycastle.crypto.CryptoServicesPermission \"exportPrivateKey\";",
"permission java.io.FilePermission \"\${javax.net.ssl.trustStore}\", \"read\";",
" permission java.util.PropertyPermission \"com.amazonaws.sdk.ec2MetadataServiceEndpointOverride\", \"write\";",
"permission java.util.PropertyPermission \"com.amazonaws.sdk.ec2MetadataServiceEndpointOverride\", \"write\";",
"permission java.security.SecurityPermission \"getProperty.jdk.tls.disabledAlgorithms\";",
"permission java.security.SecurityPermission \"getProperty.jdk.certpath.disabledAlgorithms\";",
"permission java.security.SecurityPermission \"getProperty.keystore.type.compat\";",
"};"
].join("\n")
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,4 @@ grant {
permission java.net.SocketPermission "*", "connect";

permission java.lang.reflect.ReflectPermission "suppressAccessChecks";

// required for fips
permission java.security.SecurityPermission "getProperty.jdk.tls.disabledAlgorithms";
permission java.security.SecurityPermission "getProperty.jdk.certpath.disabledAlgorithms";
permission java.security.SecurityPermission "getProperty.keystore.type.compat";
};

0 comments on commit 57ff496

Please sign in to comment.