Skip to content

feat: Add Federated Settings Identity Provider Resource#1540

Merged
rakhul-mongo merged 5 commits intomasterfrom
CLOUDP-369801-federated-settings-identity-provider
Jan 29, 2026
Merged

feat: Add Federated Settings Identity Provider Resource#1540
rakhul-mongo merged 5 commits intomasterfrom
CLOUDP-369801-federated-settings-identity-provider

Conversation

@rakhul-mongo
Copy link
Copy Markdown
Contributor

Proposed changes

Added new resource MongoDB::Atlas::FederatedSettingsIdentityProvider for managing Atlas Federated Authentication Identity Providers (OIDC and SAML).

Resource Configuration

Required Properties:

  • FederationSettingsId: Unique 24-hexadecimal digit string that identifies your federation
  • Name: Human-readable label (display name) of the identity provider
  • IssuerUri: Issuer URI of the identity provider

Optional Properties:

  • Protocol: Identity provider protocol (OIDC or SAML) - automatically set to "OIDC" for create operations
  • IdpType: Identity provider type (WORKFORCE or WORKLOAD)
  • Audience: OIDC audience claim value
  • ClientId: OIDC client ID (optional for WORKLOAD providers like GitHub Actions)
  • GroupsClaim: OIDC groups claim
  • UserClaim: OIDC user claim
  • RequestedScopes: OIDC requested scopes (not needed for WORKLOAD providers)
  • Description: Description of the identity provider
  • AuthorizationType: OIDC authorization type
  • AssociatedDomains: List of domains associated with the identity provider
  • SsoUrl: SSO URL (SAML only)
  • SsoDebugEnabled: Flag to enable SSO debug (SAML only)
  • RequestBinding: SAML request binding
  • ResponseSignatureAlgorithm: SAML response signature algorithm
  • Status: Identity provider status
  • Profile: Secret Manager Profile containing Atlas API keys (default: "default")

Read-Only Properties:

  • IdpId: Unique identifier of the identity provider
  • OktaIdpId: Legacy identity provider identifier (not returned for WORKLOAD providers)

Note: CREATE operation only supports OIDC protocol. SAML identity providers must be imported. FederationSettingsId and Profile are create-only properties.

Testing

CFN Contract Tests:
image

Stack Testing:
image

  • Before Testing
image
  • Successfully created stack with WORKLOAD provider (GitHub Actions OIDC)
image
  • Updated stack to modify display name, description, and audience values
image
  • Confirmed stack deletion properly removes identity provider from Atlas
image

Jira ticket: CLOUDP-369801

Type of change:

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

Manual QA performed:

  • cfn invoke for each of CRUDL/cfn test
  • Updated resource in example
  • Published to AWS private registry
  • Used the template in example to create and update a stack in AWS
  • Deleted stack to ensure resources are deleted
  • Created multiple resources in same stack
  • Validated in Atlas UI

Required Checklist:

  • I have signed the MongoDB CLA
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked that this change does not generate any credentials and that they are NOT accidentally logged anywhere.
  • I have added any necessary documentation (if appropriate)
  • I have run make fmt and formatted my code
  • For CFN Resources: I have released by changes in the private registry and proved by change works in Atlas

@rakhul-mongo rakhul-mongo force-pushed the CLOUDP-369801-federated-settings-identity-provider branch 2 times, most recently from 0ba7348 to 05ad5dd Compare January 20, 2026 10:16
@ParthasarathyV ParthasarathyV marked this pull request as ready for review January 27, 2026 19:23
@ParthasarathyV ParthasarathyV requested a review from a team as a code owner January 27, 2026 19:23
Comment thread cfn-resources/federated-settings-identity-provider/cmd/resource/handlers.go Outdated
Comment thread cfn-resources/federated-settings-identity-provider/cmd/resource/mappings.go Outdated
Comment thread cfn-resources/federated-settings-identity-provider/cmd/resource/mappings.go Outdated
Comment thread cfn-resources/federated-settings-identity-provider/cmd/resource/mappings_test.go Outdated
@rakhul-mongo rakhul-mongo force-pushed the CLOUDP-369801-federated-settings-identity-provider branch from 1c69b9c to 3a077bb Compare January 29, 2026 09:23
Copy link
Copy Markdown
Collaborator

@oarbusi oarbusi left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for addressing the comments. Since this is a new resource, 1.0.0 version of it should be released

@rakhul-mongo rakhul-mongo added this pull request to the merge queue Jan 29, 2026
Merged via the queue into master with commit 5076d31 Jan 29, 2026
44 checks passed
@rakhul-mongo rakhul-mongo deleted the CLOUDP-369801-federated-settings-identity-provider branch January 29, 2026 11:50
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.

3 participants