Skip to content

RUBY-3797 Migrate away from set-temp-creds.sh#3065

Draft
comandeo-mongo wants to merge 2 commits into
mongodb:masterfrom
comandeo-mongo:ruby-3797-migrate-set-temp-creds
Draft

RUBY-3797 Migrate away from set-temp-creds.sh#3065
comandeo-mongo wants to merge 2 commits into
mongodb:masterfrom
comandeo-mongo:ruby-3797-migrate-set-temp-creds

Conversation

@comandeo-mongo

Copy link
Copy Markdown
Contributor

What

Migrate the Ruby driver off the deprecated set-temp-creds.sh script from
drivers-evergreen-tools, in preparation for its removal (DRIVERS-3433).

Context

The legacy csfle/set-temp-creds.sh is deprecated upstream and emits a
warning pointing at setup-secrets.sh. Most of the migration already
happened:

The only remaining consumer of set-temp-creds.sh was
run-tests-serverless.sh. That script is dead code: serverless testing was
removed in RUBY-3652 (#2942) and no Evergreen task references it
(config.yml and the ERB templates have no serverless tasks).

Changes

  • Delete .evergreen/run-tests-serverless.sh (orphaned; last
    set-temp-creds.sh consumer).
  • Fix three stale comments in spec/support/spec_config.rb that still
    referenced set-temp-creds.sh; the CSFLE_AWS_TEMP_* env vars they
    document are now produced by setup-secrets.sh. The readers themselves
    are unchanged and still used by the migrated run-tests.sh FLE path.

After this change there are no remaining references to set-temp-creds.sh
in the repository.

Test plan

CI/shell-only change. No runtime Ruby code is touched and no spec exercises
the deleted serverless script; the spec_config.rb edit is comment-only.

  • bundle exec rubocop spec/support/spec_config.rb — no offenses
  • git grep set-temp-creds — no references remain

Jira

https://jira.mongodb.org/browse/RUBY-3797

The legacy csfle/set-temp-creds.sh script is deprecated in
drivers-evergreen-tools (DRIVERS-3433). The main run-tests.sh path
already moved to setup-secrets.sh under RUBY-3886, and setup_secrets.py
now produces the same CSFLE_AWS_TEMP_* credentials.

The only remaining consumer was run-tests-serverless.sh, which is dead
code: serverless testing was removed in RUBY-3652 and no Evergreen task
references the script. Delete it, and fix the now-stale spec_config.rb
comments that still pointed at set-temp-creds.sh.
@comandeo-mongo comandeo-mongo added the tracked-in-jira Ticket filed in Mongo's Jira system label Jun 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tracked-in-jira Ticket filed in Mongo's Jira system

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant