Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Centralized configuration service for the Digital Bank Java platform, built with

## Configuration Model

The service uses the Spring Cloud Config Git backend. Client configuration is owned by the separate `platform-config` repository so configuration can change independently of the Config Server image.
The service uses the Spring Cloud Config Git backend. Client configuration is owned by the separate `config-repo` repository so configuration can change independently of the Config Server image.

### Config Server Runtime Configuration

Expand All @@ -31,10 +31,10 @@ The service uses the Spring Cloud Config Git backend. Client configuration is ow

### Client Configuration Repository

The sibling `platform-config` repository contains configuration served to client services:
The sibling `config-repo` repository contains configuration served to client services:

```text
platform-config/
config-repo/
├── application.yml
├── application-local.yml
└── customer-service/
Expand Down Expand Up @@ -69,12 +69,12 @@ helm version --short

## Run Locally

Clone `platform-config` beside this repository. The default local repository URI is `file:../platform-config`:
Clone `config-repo` beside this repository. The default local repository URI is `file:../config-repo`:

```text
digital-bank-java/
├── config-server/
└── platform-config/
└── config-repo/
```

Run commands from the `config-server` repository root.
Expand Down Expand Up @@ -125,13 +125,13 @@ curl --fail http://localhost:8888/customer-service/local
The local response combines configuration from:

```text
platform-config/customer-service/customer-service-local.yml
platform-config/application-local.yml
platform-config/customer-service/customer-service.yml
platform-config/application.yml
config-repo/customer-service/customer-service-local.yml
config-repo/application-local.yml
config-repo/customer-service/customer-service.yml
config-repo/application.yml
```

More specific profile and service configuration takes precedence over shared defaults. The response `version` identifies the exact `platform-config` Git commit used.
More specific profile and service configuration takes precedence over shared defaults. The response `version` identifies the exact `config-repo` Git commit used.

## Run With Docker

Expand All @@ -147,7 +147,7 @@ Create a disposable writable copy of the local configuration repository. JGit re

```bash
CONFIG_REPO_FIXTURE="$(mktemp -d)"
cp -R ../platform-config/. "$CONFIG_REPO_FIXTURE/"
cp -R ../config-repo/. "$CONFIG_REPO_FIXTURE/"
chmod -R a+rwX "$CONFIG_REPO_FIXTURE"
```

Expand All @@ -158,9 +158,9 @@ docker run --detach \
--rm \
--name digital-bank-java-config-server \
--publish 8888:8888 \
--env CONFIG_REPO_URI=file:/platform-config \
--env CONFIG_REPO_URI=file:/config-repo \
--env CONFIG_REPO_DEFAULT_LABEL=main \
--volume "$CONFIG_REPO_FIXTURE:/platform-config" \
--volume "$CONFIG_REPO_FIXTURE:/config-repo" \
digital-bank-java/config-server:0.0.2
```

Expand Down Expand Up @@ -272,7 +272,7 @@ Third-party GitHub Actions are pinned to immutable commit SHAs.

The same container and Helm chart are intended to move through SIT, UAT, and PROD without application rebuilds. Hosted environments will provide environment-specific image repositories, immutable image tags, resource sizing, and infrastructure configuration through the deployment pipeline.

Configuration is promoted independently through the dedicated Git-backed `platform-config` repository. Secrets must remain outside Git and Helm values and be supplied through the environment's approved secret-management integration. AWS environments will replace the manually created SIT Secret with managed secret delivery and rotation.
Configuration is promoted independently through the dedicated Git-backed `config-repo` repository. Secrets must remain outside Git and Helm values and be supplied through the environment's approved secret-management integration. AWS environments will replace the manually created SIT Secret with managed secret delivery and rotation.

## Development Workflow

Expand Down
2 changes: 1 addition & 1 deletion helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ image:
pullPolicy: IfNotPresent

configRepository:
uri: https://github.com/digital-bank-java/platform-config.git
uri: https://github.com/digital-bank-java/config-repo.git
defaultLabel: main
credentialsSecret:
name: config-server-git-credentials
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spring:
server:
accept-empty: false
git:
uri: "${CONFIG_REPO_URI:file:../platform-config}"
uri: "${CONFIG_REPO_URI:file:../config-repo}"
default-label: "${CONFIG_REPO_DEFAULT_LABEL:main}"
try-master-branch: false
search-paths:
Expand All @@ -22,7 +22,7 @@ spring:
password: "${CONFIG_REPO_TOKEN:}"
health:
repositories:
platform-config:
config-repo:
name: customer-service
profiles: local
label: "${CONFIG_REPO_DEFAULT_LABEL:main}"
Expand Down