mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-21 07:18:05 +01:00
Moving secret values out of the main configuration file
This commit is contained in:
8
service/src/main/resources/META-INF/validation.xml
Normal file
8
service/src/main/resources/META-INF/validation.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<validation-config
|
||||
xmlns="http://xmlns.jcp.org/xml/ns/validation/configuration"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/validation/configuration validation-configuration-2.0.xsd"
|
||||
version="2.0">
|
||||
<constraint-mapping>META-INF/validation/constraints-custom.xml</constraint-mapping>
|
||||
</validation-config>
|
||||
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<constraint-mappings
|
||||
xmlns="http://xmlns.jcp.org/xml/ns/validation/mapping"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/validation/mapping
|
||||
http://xmlns.jcp.org/xml/ns/validation/mapping/validation-mapping-2.0.xsd"
|
||||
version="2.0">
|
||||
<constraint-definition annotation="javax.validation.constraints.NotEmpty">
|
||||
<validated-by include-existing-validators="true">
|
||||
<value>org.whispersystems.textsecuregcm.configuration.secrets.SecretStringList$ValidatorNotEmpty</value>
|
||||
<value>org.whispersystems.textsecuregcm.configuration.secrets.SecretBytesList$ValidatorNotEmpty</value>
|
||||
</validated-by>
|
||||
</constraint-definition>
|
||||
</constraint-mappings>
|
||||
|
||||
Reference in New Issue
Block a user