Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strip newline in web identity token file if found #1965

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ZackarySantana
Copy link

Summary

This updates the token retrieval to strip the newline if present. I'm open to any alterations if needed!

Background & Motivation

I'm using fly.io and their token files unfortunately come with a new line at the end of them. It'd be nice if I didn't have to overwrite the file to remove the newline, but instead the assume role provider was more resilient.

@mongodb-drivers-pr-bot mongodb-drivers-pr-bot bot added the priority-3-low Low Priority PR for Review label Feb 28, 2025
Copy link
Contributor

API Change Report

No changes found!

@ZackarySantana
Copy link
Author

In the meantime, I'm using this as a workaround (in case anyone else runs in to this problem: https://gist.github.com/ZackarySantana/1aedd800f0b8a55227bb79c5e3ec4ebd)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority-3-low Low Priority PR for Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant