Skip to content

Commit 4282fda

Browse files
committed
chore: move warning to ConnectionProperties
1 parent 1450b08 commit 4282fda

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

google-cloud-spanner/src/main/java/com/google/cloud/spanner/connection/ConnectionProperties.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,13 @@ public class ConnectionProperties {
270270
ENCODED_CREDENTIALS_PROPERTY_NAME,
271271
"Base64-encoded credentials to use for this connection. If neither this property or a"
272272
+ " credentials location are set, the connection will use the default Google Cloud"
273-
+ " credentials for the runtime environment.",
273+
+ " credentials for the runtime environment."
274+
+ " WARNING: Enabling this property without proper validation can"
275+
+ " expose the application to security risks."
276+
+ " It is intended for use with credentials from a trusted source only,"
277+
+ " as it could otherwise allow end-users to supply arbitrary credentials."
278+
+ " For more information, see"
279+
+ "https://cloud.google.com/docs/authentication/client-libraries#external-credentials",
274280
null,
275281
StringValueConverter.INSTANCE,
276282
Context.STARTUP);

0 commit comments

Comments
 (0)