Skip to content

RUBY-3889 Remove legacy .env.private pattern and Kerberos CI#3052

Merged
comandeo-mongo merged 1 commit into
mongodb:masterfrom
comandeo-mongo:ruby-3889
May 29, 2026
Merged

RUBY-3889 Remove legacy .env.private pattern and Kerberos CI#3052
comandeo-mongo merged 1 commit into
mongodb:masterfrom
comandeo-mongo:ruby-3889

Conversation

@comandeo-mongo
Copy link
Copy Markdown
Contributor

Motivation

Completes the AWS Secrets Manager migration (RUBY-3311) by removing the old .env.private pattern and the Kerberos CI build that was never migrated.

Changes

  • Remove "delete private environment" post-task function from common.yml.erb (and regenerated config.yml). All secrets now come from AWS Secrets Manager; there is nothing left to clean up after a task.
  • Remove .env.private fallback branches from functions-aws.sh, run-tests-aws-auth.sh, and run-tests-docker.sh. These branches were kept during the migration window to preserve backward compatibility with the old Evergreen project variables; that window is now closed.
  • Remove "export Kerberos credentials" function, "run Kerberos unit tests" function, "test-kerberos" task, and kerberos-unit build matrix. The Kerberos tests have not been run in CI, and RUBY-3887 (migrate Kerberos secrets) is being skipped.
  • Delete dead scripts: run-tests-kerberos-unit.sh, run-tests-kerberos-integration.sh, functions-kerberos.sh.
  • Update README.md to remove the Kerberos local-testing example.

Related tickets

Remove the "delete private environment" post-task function and all
.env.private fallback paths from shell scripts, completing the migration
to AWS Secrets Manager that started with RUBY-3672, RUBY-3886, and
RUBY-3888.

Also remove the Kerberos CI build variant and all associated scripts
(run-tests-kerberos-unit.sh, run-tests-kerberos-integration.sh,
functions-kerberos.sh) since those tests have not been run and the
secrets were never migrated (RUBY-3887 skipped).
Copilot AI review requested due to automatic review settings May 28, 2026 10:08
@comandeo-mongo comandeo-mongo requested a review from a team as a code owner May 28, 2026 10:08
@comandeo-mongo comandeo-mongo requested a review from jamis May 28, 2026 10:08
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Completes the AWS Secrets Manager migration by removing the legacy .env.private fallback pattern from CI scripts and eliminates the Kerberos CI infrastructure (task, buildvariant, functions, and helper scripts) that was never migrated.

Changes:

  • Remove .env.private fallback branches from functions-aws.sh, run-tests-aws-auth.sh, and run-tests-docker.sh; AWS auth scripts now unconditionally source ${DRIVERS_TOOLS}/.evergreen/auth_aws/secrets-export.sh.
  • Remove Kerberos Evergreen wiring: export Kerberos credentials / run Kerberos unit tests functions, delete private environment post-task, test-kerberos task, and kerberos-unit buildvariant from common.yml.erb/config.yml/standard.yml.erb.
  • Delete run-tests-kerberos-unit.sh, run-tests-kerberos-integration.sh, functions-kerberos.sh, and the Kerberos local-testing example from .evergreen/README.md.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.

Show a summary per file
File Description
.evergreen/run-tests-kerberos-unit.sh Deleted dead Kerberos unit test runner script.
.evergreen/run-tests-kerberos-integration.sh Deleted dead Kerberos integration test runner script.
.evergreen/run-tests-docker.sh Drops .env.private auto-mount and dotenv install branch.
.evergreen/run-tests-aws-auth.sh Hard-requires DRIVERS_TOOLS AWS secrets export instead of fallback.
.evergreen/README.md Removes Kerberos integration docker example tied to deleted script.
.evergreen/functions-kerberos.sh Deleted Kerberos configuration helper functions.
.evergreen/functions-aws.sh Hard-requires DRIVERS_TOOLS AWS secrets export inside clear_instance_profile.
.evergreen/config/standard.yml.erb Removes kerberos-unit buildvariant.
.evergreen/config/common.yml.erb Removes Kerberos credentials/test functions, post-task private env cleanup, and test-kerberos task.
.evergreen/config.yml Regenerated to mirror erb changes.

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

@comandeo-mongo comandeo-mongo merged commit c302225 into mongodb:master May 29, 2026
219 checks passed
@comandeo-mongo comandeo-mongo deleted the ruby-3889 branch May 29, 2026 10:03
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.

3 participants