Skip to content

[MONGOCRYPT-838] Fix project name detection and role usage in Python release steps#1119

Draft
vector-of-bool wants to merge 3 commits intomongodb:masterfrom
vector-of-bool:MONGOCRYPT-838-project-name
Draft

[MONGOCRYPT-838] Fix project name detection and role usage in Python release steps#1119
vector-of-bool wants to merge 3 commits intomongodb:masterfrom
vector-of-bool:MONGOCRYPT-838-project-name

Conversation

@vector-of-bool
Copy link
Contributor

@vector-of-bool vector-of-bool commented Feb 5, 2026

  • Fix detection of the project name to tell when to use the CDN bucket.
  • Update the s3 cp script in the Python release steps to use the credentials for the role that can access data from the bucket.
  • Set the permission on uploaded files to private, required for posting to the CDN bucket.

@vector-of-bool vector-of-bool requested a review from a team as a code owner February 5, 2026 20:55
@vector-of-bool vector-of-bool requested review from kevinAlbs and mdb-ad and removed request for mdb-ad February 5, 2026 20:55
Copy link
Contributor

@kevinAlbs kevinAlbs left a comment

Choose a reason for hiding this comment

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

LGTM with using an expansion for the permissions. I'm not sure how to address "publish packages", but that can be done in a later PR.

remote_file: '${project}/${build_variant}/${branch_name}/${libmongocrypt_s3_suffix}/libmongocrypt.tar.gz'
bucket: ${upload_bucket}
permissions: public-read
permissions: private
Copy link
Contributor

Choose a reason for hiding this comment

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

I think use an expansion to determine the permissions:

permissions: ${upload_permissions}

pymongocrypt refers to this URL in public docs:

https://s3.amazonaws.com/mciuploads/libmongocrypt/all/master/latest/libmongocrypt-all.tar.gz

I expect that link would break if the upload was made private. I would like to remove that public documentation first (and ideally provide an alternative to the latest release download).

- command: shell.exec
params:
shell: "bash"
include_expansions_in_env: &aws-params-env
Copy link
Contributor

Choose a reason for hiding this comment

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

Sigh ... I think a follow-up change will be needed for the "publish packages" function, which uses curator to download from the S3 URL https://mciuploads.s3.amazonaws.com/.... I'm not sure how to address that yet. But I think it will need to be addressed before a release.

@vector-of-bool vector-of-bool marked this pull request as draft February 5, 2026 21:26
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