mirror of
https://github.com/gravitational/teleport.git
synced 2026-09-21 05:55:42 +08:00
* feat: support authenticating with AWS IAM for MongoDB Atlas * chore(lint): fix errors * test(tsh): add missing database field * refactor(mongodb): check for error on each authenticator branch * refactor(mongodb): update log messages and atlas check * refactor(auth): use IsRoleARN helper instead of IsARN * chore(db): remove unused line * chore(mongodb): split authenticator func * refactor(db): rename get atlas token function * tests(db): reuse already existent auth property * chore(mongodb): add docs reference * refactor(db): support role chaining * feat(types): "require" iam role for atlas users * refactor(db): use external id only on the first session * refactor(services): add new database matcher for regular users and aws * chore(db): rename functions to be more assertive * chore(types): fix lint * test(db): remove duplicated test The test being removed here is covered by `TestMongoDBAtlas` (lib/srv/db/auth_test.go).