mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-07 09:46:53 +01:00
19 lines
1.1 KiB
Plaintext
19 lines
1.1 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * builds/creating-build-inputs.adoc
|
|
|
|
[id="builds-input-secrets-configmaps_{context}"]
|
|
= Input secrets and config maps
|
|
|
|
In some scenarios, build operations require credentials or other configuration data to access dependent resources, but it is undesirable for that information to be placed in source control. You can define input secrets and input config maps for this purpose.
|
|
|
|
For example, when building a Java application with Maven, you can set up a private mirror of Maven Central or JCenter that is accessed by private keys. To download libraries from that private mirror, you have to supply the
|
|
following:
|
|
|
|
. A `settings.xml` file configured with the mirror's URL and connection settings.
|
|
. A private key referenced in the settings file, such as `~/.ssh/id_rsa`.
|
|
|
|
For security reasons, you do not want to expose your credentials in the application image.
|
|
|
|
This example describes a Java application, but you can use the same approach for adding SSL certificates into the `/etc/ssl/certs` directory, API keys or tokens, license files, and more.
|