fix(EverCore): require MinIO credentials from environment (CWE-798)#240
Open
Fearvox wants to merge 1 commit into
Open
fix(EverCore): require MinIO credentials from environment (CWE-798)#240Fearvox wants to merge 1 commit into
Fearvox wants to merge 1 commit into
Conversation
docker-compose.yaml hardcoded minioadmin/minioadmin for the Milvus
MinIO object store (CWE-798: Use of Hard-coded Credentials). Replace
the literals with ${MINIO_ACCESS_KEY:?...} / ${MINIO_SECRET_KEY:?...}
so the values are sourced from the environment and compose fails loudly
when they are unset. Document the new variables in env.template.
Adopts upstream EverMind-AI/EverOS PR EverMind-AI#206.
Verified locally with `docker-compose config`:
- unset: errors "required variable MINIO_ACCESS_KEY is missing a value"
- set: resolves to the provided env values
Co-authored-by: Sebastion <sebastion@sebastion.dev>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
methods/EverCore/docker-compose.yamlhardcodedminioadmin/minioadminas theMINIO_ACCESS_KEY/MINIO_SECRET_KEYfor the Milvus MinIO object store. That isCWE-798: Use of Hard-coded Credentials —
anyone who can read the repo knows the object-store credentials, and a default
docker compose upships those credentials into a running service.This PR removes the hardcoded literals and sources the credentials from the
environment, failing loudly if they are not set:
The new variables are documented in
methods/EverCore/env.templatenext to theexisting Milvus configuration, with
change-me-*placeholder values so users areprompted to set their own:
The
${VAR:?message}form means an operator who forgets to set the variables gets aclear, actionable error instead of silently booting with well-known credentials.
Why
env.templateto.env, set the twovalues,
docker compose upworks exactly as before.unauthenticated object store.
Verification
Verified locally with the standalone
docker-compose configinterpolator againstmethods/EverCore/docker-compose.yaml:MINIO_ACCESS_KEY/MINIO_SECRET_KEYunsetdocker-compose configexits 1:required variable MINIO_ACCESS_KEY is missing a value: Set MINIO_ACCESS_KEY in your .env filedocker-compose configexits 0 and the rendered config shows the provided values, e.g.MINIO_ACCESS_KEY: testkey123YAML validity confirmed via
yaml.safe_load. No application runtime is required —this is a static infra-config change.
Attribution
Adopts upstream EverMind-AI/EverOS PR
#206 by @sebastiondev
(Sebastion). Full credit preserved via a
Co-authored-bytrailer on the commit.Scope
Two files, +7 / -2 lines, no behavior change for correctly-configured deployments:
methods/EverCore/docker-compose.yamlmethods/EverCore/env.templateCo-authored-by: Sebastion sebastion@sebastion.dev