Skip to content

Commit bb7abf8

Browse files
committedJan 15, 2025
Merge branch '3.3.x' into 3.4.x
Closes gh-43835
2 parents 1fed765 + faf40f3 commit bb7abf8

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed
 

‎spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/features/external-config.adoc

+16
Original file line numberDiff line numberDiff line change
@@ -1190,6 +1190,22 @@ Doing so gives a transparent upgrade path while supporting a much richer format.
11901190

11911191

11921192

1193+
[[features.external-config.typesafe-configuration-properties.conversion.base64]]
1194+
==== Converting Base64 Data
1195+
1196+
Spring Boot supports resolving binary data that have been Base64 encoded.
1197+
If you expose a `Resource` property, the base64 encoded text can be provided as the value with a `base64:` prefix, as shown in the following example:
1198+
1199+
[configprops%novalidate,yaml]
1200+
----
1201+
my:
1202+
property: base64:SGVsbG8gV29ybGQ=
1203+
----
1204+
1205+
NOTE: The `Resource` property can also be used to provide the path to the resource, making it more versatile.
1206+
1207+
1208+
11931209
[[features.external-config.typesafe-configuration-properties.validation]]
11941210
=== @ConfigurationProperties Validation
11951211

‎spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/features/ssl.adoc

+9
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ When used to secure a client-side connection, a `truststore` is typically config
4343
password: "secret"
4444
----
4545

46+
[TIP]
47+
====
48+
Rather than the location to a file, the xref:features/external-config.adoc#features.external-config.typesafe-configuration-properties.conversion.base64[Base64 encoded content] of the file can be provided.
49+
If you chose this options, the value should start with `base64:`.
50+
====
51+
4652
See javadoc:org.springframework.boot.autoconfigure.ssl.JksSslBundleProperties[] for the full set of supported properties.
4753

4854
NOTE: If you're using environment variables to configure the bundle, the name of the bundle is xref:features/external-config.adoc#features.external-config.typesafe-configuration-properties.relaxed-binding.maps-from-environment-variables[always converted to lowercase].
@@ -84,6 +90,9 @@ When used to secure a client-side connection, a `truststore` is typically config
8490

8591
[TIP]
8692
====
93+
Rather than the location to a file, the xref:features/external-config.adoc#features.external-config.typesafe-configuration-properties.conversion.base64[Base64 encoded content] of the file can be provided.
94+
If you chose this options, the value should start with `base64:`.
95+
8796
PEM content can be used directly for both the `certificate` and `private-key` properties.
8897
If the property values contain `BEGIN` and `END` markers then they will be treated as PEM content rather than a resource location.
8998

0 commit comments

Comments
 (0)