Skip to content

Commit

Permalink
Allow secrets in a Keystore (#8710)
Browse files Browse the repository at this point in the history
This change is enough to allow users to provide secrets via keystores.

See also https://quarkus.io/guides/config-secrets#store-secrets-in-a-keystore
  • Loading branch information
snazy authored Jun 6, 2024
1 parent 81b35b6 commit 3397ded
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions servers/quarkus-common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ dependencies {
implementation("io.quarkus:quarkus-jdbc-mariadb")
implementation("io.quarkus:quarkus-opentelemetry")
implementation("io.quarkus:quarkus-micrometer")
implementation("io.smallrye.config:smallrye-config-source-keystore")
implementation(enforcedPlatform(libs.quarkus.amazon.services.bom))
implementation("io.quarkiverse.amazonservices:quarkus-amazon-dynamodb")
implementation("software.amazon.awssdk:sts")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@
nessie.server.default-branch=main
nessie.server.send-stacktrace-to-client=false

# To provide secrets via a keystore via Quarkus, the following configuration
# options need to be configured accordingly.
# For details see https://quarkus.io/guides/config-secrets#store-secrets-in-a-keystore
#smallrye.config.source.keystore."properties".path=properties
#smallrye.config.source.keystore."properties".password=arealpassword
#smallrye.config.source.keystore."properties".handler=aes-gcm-nopadding
#smallrye.config.source.keystore."key".path=key
#smallrye.config.source.keystore."key".password=anotherpassword

##### Nessie Catalog

# Iceberg default config (can be overridden per warehouse)
Expand Down
5 changes: 5 additions & 0 deletions site/in-dev/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ See [here](https://smallrye.io/smallrye-config/Main/config/environment-variables

For more information on docker images, see [Docker image options](#docker-image-options) below.

## Providing secrets

Instead of providing secrets like passwords in clear text, you can also use a keystore. This
functionality is provided [natively via Quarkus](https://quarkus.io/guides/config-secrets#store-secrets-in-a-keystore).

## Core Nessie Configuration Settings

### Core Settings
Expand Down

0 comments on commit 3397ded

Please sign in to comment.