RUBY-3303 Add OIDC machine workflow auth (WIP)#2873
Draft
durran wants to merge 1 commit intomongodb:masterfrom
Draft
RUBY-3303 Add OIDC machine workflow auth (WIP)#2873durran wants to merge 1 commit intomongodb:masterfrom
durran wants to merge 1 commit intomongodb:masterfrom
Conversation
f004c62 to
0805e63
Compare
4 tasks
a4f29f8 to
224167b
Compare
e498b7e to
a6b8ce3
Compare
ea2b592 to
7aeef5f
Compare
|
@durran , This is a feature we need for our Ruby application. Would it be possible for you to prioritize working on this PR? |
Contributor
|
Hey @naveen-k558, I'm the Product Manager for our Ruby developer experience and implementing an OIDC SASL mechanism (RUBY-3148) is definitely on our roadmap - though based on resource availability it's unlikely we'll have it delivered before end of year - though @durran has been contributing to these efforts. Feel free to shoot me a message at [email protected] and share any details about your specific needs or the current challenges you're facing not having access to this feature as it helps us make a case for prioritizing work higher. |
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.
Adds support for
MONGODB-OIDCas an authentication mechanism for MongoDB server versions 7.0+. The currently supported facets to authenticate with are custom callback authentication, Azure machine authentication, and GCP machine authentication.Azure Machine Authentication
The
Mongo::Clientmust be instantiated withauthMechanism=MONGODB-OIDCin the URI or in the client options. Additional required auth mechanism properties ofTOKEN_RESOURCEandENVIRONMENTare required and another optional username can be provided. Example:GCP Machine Authentication
The
Mongo::Clientmust be instantiated withauthMechanism=MONGODB-OIDCin the URI or in the client options. Additional required auth mechanism properties ofTOKEN_RESOURCEandENVIRONMENTare required. Example:Custom Machine Callbacks
Users can provide a custom callback that returns a token from the environment without requiring user interaction. The callback must be passed as an instantiated class that defines one method
executethat takes 3 named arguments:timeout,:version, and:usernameand returns a hash of{ access_token: <value> }. The callback is then provided as an auth mechanism property to the mongo client as:oidc_callback.Notes
This is a WIP, starting as Skunkworks project and will continue adding to it during the quarter.
Updates:
https://spruce.mongodb.com/version/669aa98654b1ac0007081655/tasks?page=0&sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC&variant=%5Etest-oidc-variant__mongodb-version~latest_topology~standalone_ruby~ruby-3.2_os~ubuntu2204_fle~helper%24