Skip to content

NCC-28 make sure that we are loading the tank when choosing the dev s… - #4

Merged
sedv8808 merged 1 commit into
mainfrom
dev/ghactions
Aug 18, 2026
Merged

NCC-28 make sure that we are loading the tank when choosing the dev s…#4
sedv8808 merged 1 commit into
mainfrom
dev/ghactions

Conversation

@sedv8808

Copy link
Copy Markdown
Contributor

…tack

Copilot AI lite review requested due to automatic review settings August 18, 2026 21:59
@sedv8808
sedv8808 merged commit 3cbd94f into main Aug 18, 2026
1 check passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR tightens safety and observability around which Neotoma database and DataCite environment a minting run is actually using, with special handling for the deployed dev stack where DBAUTH may point at the holding tank.

Changes:

  • Update ndbdoi.py to print the actual target database (parsed from DBAUTH / DBAUTH_TEST) instead of inferring it from --tank.
  • Update entrypoint.sh to force GATE_ONLY=1 when NEOTOMA_ENVIRONMENT=dev, preventing any production DataCite mint from the dev stack.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
ndbdoi.py Adds _database_name() and updates the run banner to show the real DB target derived from env/.env.
entrypoint.sh Forces gate-only behavior in dev environment to prevent production DataCite minting from dev stack runs.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread ndbdoi.py
secrets = {**dotenv_values(), **os.environ}
try:
conn = json.loads(secrets[key])
return f"{conn.get('database', '?')} on {conn.get('host', '?')}"
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