Skip to content

feat: add AppConfigData stub and local demo infrastructure for AWS mocks#2

Merged
anydef merged 1 commit into
mainfrom
feat/moto-server
Jul 1, 2026
Merged

feat: add AppConfigData stub and local demo infrastructure for AWS mocks#2
anydef merged 1 commit into
mainfrom
feat/moto-server

Conversation

@anydef

@anydef anydef commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@anydef anydef merged commit 4a002a2 into main Jul 1, 2026
1 of 2 checks passed
@anydef anydef deleted the feat/moto-server branch July 1, 2026 15:46

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an offline local demo stack to exercise Otto Config’s AWS + Vault integrations without requiring real AWS credentials or access to the corporate Vault, including an AppConfigData data-plane stub to compensate for moto’s missing support.

Changes:

  • Updated root documentation to run demos from the repo root and added guidance for the local docker-compose stack.
  • Added new moto profile configuration for Spring and Helidon demos to point at local moto/Vault endpoints and enable change notifications.
  • Introduced demo/local docker-compose infrastructure, bootstrap scripts, a change-event helper, and a JDK-only AppConfigData stub server.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
README.md Updates demo run instructions and documents the new local stack entrypoint.
demo/spring/src/main/resources/application-moto.properties Adds Spring “moto” profile overrides for local moto/Vault usage and queue-based refresh.
demo/helidon/src/main/resources/META-INF/microprofile-config-moto.properties Adds Helidon “moto” profile overrides matching the Spring demo behavior.
demo/local/README.md Documents how the local stack works, how to run demos against it, and how to live-edit AppConfig JSON.
demo/local/docker-compose.yml Defines moto + Vault + AppConfigData stub services plus init containers to seed resources and generate .env.
demo/local/init-moto.sh Seeds moto with Secrets Manager, SSM parameters, and the SQS change-notification queue.
demo/local/init-vault.sh Seeds Vault KV/AppRole and writes role/secret IDs plus AWS endpoint env vars to .env.
demo/local/notify-change.sh Helper to push EventBridge-shaped change events into the moto SQS queue for immediate refresh.
demo/local/appconfigdata-stub/AppConfigDataStub.java Implements minimal AppConfigData endpoints backed by local JSON files, including FeatureFlags value extraction.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +123 to +125
Long previous = LAST_SEEN_MTIME.get(token);
String nextToken = encodeToken(profile);
LAST_SEEN_MTIME.put(nextToken, mtime);
Comment on lines +86 to +89
if (!PROFILE_TO_FILE.containsKey(profile)) {
respondJson(ex, 404, "{\"Message\":\"unknown profile '" + profile + "'\"}");
return;
}
ports:
- "8200:8200"
healthcheck:
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:8200/v1/sys/health"]
# the original inode and keep serving the old content.
- ../terraform:/data:ro
healthcheck:
test: ["CMD-SHELL", "exec 3<>/dev/tcp/127.0.0.1/5001 && printf 'GET /configuration HTTP/1.0\\r\\n\\r\\n' >&3 && head -n1 <&3"]
Comment thread README.md
Comment on lines +268 to +269
cd demo/local && docker compose up -d && source ./.env && cd ../..
./gradlew :demo:spring:bootRun --args='--spring.profiles.active=moto'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants