Repository navigation
fix: use runtime credentials in connection examples and diagnostics - #518
Merged
hossain-rayhan merged 1 commit intoNov 19, 2026
Merged
Conversation
Read driver credentials from the environment, prompt interactively in shell examples, and use the deployment Secret in EKS diagnostics. Preserve dynamic URI formatting and add focused diagnostic regression coverage. Co-authored-by: Copilot <[email protected]> Copilot-Session: 33b3cb3c-1b25-4ffb-bff1-ebf0f3d04058 Signed-off-by: Rayhan Hossain <[email protected]>
hossain-rayhan
requested review from
WentingWu666666,
alaye-ms and
xgerman
as code owners
November 19, 2026 17:41
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified in the changes to remove embedded credentials and use runtime authentication for diagnostics.
No open issues 🎉
What changed in this PR
This PR removes embedded credentials from DocumentDB connection examples and makes EKS playground diagnostics use runtime credentials, while preserving existing connection and TLS options.
Changes:
- Uses password prompts, explicit placeholders, and environment-backed driver authentication.
- Loads diagnostic credentials from a Kubernetes Secret and authenticates with SCRAM-SHA-256 before pinging.
- Adds diagnostic regression coverage to the documentation workflow with Node.js 22.
| File | Description |
|---|---|
documentdb-playground/sync_service/sync.py |
Updates URI examples in the docstring only. |
documentdb-playground/sync_service/README.md |
Uses credential placeholders and a prompted source password. |
documentdb-playground/multi-cloud-deployment/README.md |
Replaces the example password with a prompt. |
documentdb-playground/contrib/telemetry-and-cost-optimized-eks/scripts/test_create_cluster.py |
Tests Secret references, credential metacharacters, and failed authentication. |
documentdb-playground/contrib/telemetry-and-cost-optimized-eks/scripts/create-cluster.sh |
Uses Secret-backed diagnostic authentication and removes passwords from connection guidance. |
documentdb-playground/aks-setup/README.md |
Makes connection-string placeholders explicit. |
docs/operator-public-documentation/v1/multi-region-deployment/failover-procedures.md |
Uses password prompts in failover validation commands. |
docs/operator-public-documentation/v1/index.md |
Replaces embedded connection passwords with prompts. |
docs/operator-public-documentation/v1/getting-started/quickstart-kind.md |
Uses a password prompt and clarifies credential guidance. |
docs/operator-public-documentation/v1/getting-started/quickstart-k3s.md |
Uses password prompts for local and external connections. |
docs/operator-public-documentation/v1/getting-started/connecting-to-documentdb.md |
Updates shell examples and supplies driver credentials through environment variables. |
.github/workflows/test-docs.yml |
Runs diagnostic tests with Node.js 22 and expands path triggers. |
Review effort: Balanced
xgerman
approved these changes
Nov 19, 2026
alaye-ms
approved these changes
Nov 19, 2026
hossain-rayhan
added a commit
to hossain-rayhan/documentdb-kubernetes-operator
that referenced
this pull request
Nov 19, 2026
…elease-strategy.md per release - CHANGELOG: list documentdb#518 under 1.2.0. It merged just before the release commit and shipped in 1.2.0 but had no entry. - Release agent: release-strategy.md is a policy/design document, not a per-release compatibility matrix, so drop it from the files a release updates and exclude docs/designs from the leftover-version grep. The before-you-start.md version-compatibility table remains the per-release record. Co-authored-by: Copilot <[email protected]> Copilot-Session: 9f1a71b4-9969-4456-9f65-8d19dd550d8e Signed-off-by: Rayhan Hossain <[email protected]>
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.
Summary
secretKeyRef, rather than embedding them in the URI or pod arguments.Hard-coded illustrative credentials are easy to copy into application code and can trigger credential scanners. Runtime credential lookup also keeps diagnostics working when the deployment's Secret changes.
Scope
Validation
go vetwith MongoDB Go driver v1.No AWS resources were provisioned. The container check exercises mongosh authentication, not an EKS deployment.