Skip to content

feat(sso): add group mapping, settings, and global settings resources#698

Merged
tembleking merged 3 commits intomasterfrom
feat/sso-group-mapping-resources
Feb 10, 2026
Merged

feat(sso): add group mapping, settings, and global settings resources#698
tembleking merged 3 commits intomasterfrom
feat/sso-group-mapping-resources

Conversation

@tembleking
Copy link
Copy Markdown
Member

Summary

  • Add sysdig_sso_group_mapping resource for managing SSO group-to-team mappings via Platform API (/platform/v1/group-mappings)
  • Add sysdig_sso_group_mapping_settings singleton resource for no-mapping and role-conflict strategies (/platform/v1/group-mappings-settings)
  • Add sysdig_sso_global_settings per-product singleton for password login configuration (/platform/v1/global-sso-settings/{product})
  • Deprecate legacy sysdig_group_mapping and sysdig_group_mapping_config resources in favor of the new Platform API resources
  • Include acceptance tests and documentation for all three resources

Closes #694

…tings, and sysdig_sso_global_settings resources (#694)

Add three new SSO resources using the Platform API (/platform/v1/) to replace
the legacy group mapping resources that use /api/groupmappings:

- sysdig_sso_group_mapping: manages SSO group-to-team mappings with support
  for standard and custom team roles, admin flag, and weighted priority
- sysdig_sso_group_mapping_settings: singleton resource for configuring
  no-mapping and role-conflict strategies
- sysdig_sso_global_settings: per-product singleton for enabling/disabling
  password login alongside SSO

Deprecates sysdig_group_mapping and sysdig_group_mapping_config in favor of
the new platform API resources.
@tembleking tembleking requested a review from a team as a code owner February 6, 2026 10:14
Copilot AI review requested due to automatic review settings February 6, 2026 10:14
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces three new SSO-related Terraform resources that use Sysdig's Platform API (/platform/v1) while deprecating their legacy counterparts. The resources enable management of SSO group mappings, conflict resolution settings, and password login configuration.

Changes:

  • Added sysdig_sso_group_mapping resource for mapping SSO groups to teams with role assignments
  • Added sysdig_sso_group_mapping_settings singleton resource for configuring no-mapping and role-conflict resolution strategies
  • Added sysdig_sso_global_settings per-product singleton for password login enablement
  • Deprecated legacy sysdig_group_mapping and sysdig_group_mapping_config resources with migration guidance

Reviewed changes

Copilot reviewed 17 out of 17 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
sysdig/provider.go Registers the three new SSO resources in the provider
sysdig/resource_sysdig_sso_group_mapping.go Implements SSO group mapping resource with CRUD operations
sysdig/resource_sysdig_sso_group_mapping_settings.go Implements singleton settings resource for conflict resolution
sysdig/resource_sysdig_sso_global_settings.go Implements per-product singleton for password login settings
sysdig/internal/client/v2/*.go Adds client methods and models for Platform API endpoints
sysdig/resource_sysdig_group_mapping*.go Adds deprecation messages to legacy resources
sysdig/*_test.go Adds acceptance tests for all three new resources
website/docs/r/*.md Provides documentation for the new resources

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread sysdig/internal/client/v2/model.go
Comment thread sysdig/resource_sysdig_sso_group_mapping_settings.go
Comment thread sysdig/internal/client/v2/sso_group_mapping.go
Singleton resources must use resource.Test instead of resource.ParallelTest
to avoid race conditions when multiple parallel tests modify the same global state.
Copilot AI review requested due to automatic review settings February 10, 2026 15:43
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 17 out of 17 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread sysdig/resource_sysdig_sso_group_mapping.go
Comment thread sysdig/resource_sysdig_sso_group_mapping.go
Comment thread sysdig/resource_sysdig_sso_group_mapping_settings.go
Comment thread sysdig/internal/client/v2/sso_group_mapping.go
Comment thread sysdig/resource_sysdig_sso_group_mapping_test.go
@tembleking tembleking enabled auto-merge February 10, 2026 16:01
@tembleking tembleking added this pull request to the merge queue Feb 10, 2026
Merged via the queue into master with commit 3da3b28 Feb 10, 2026
177 checks passed
@tembleking tembleking deleted the feat/sso-group-mapping-resources branch February 10, 2026 16:34
fcracker79 pushed a commit that referenced this pull request Mar 5, 2026
…#698)

## Summary

- Add `sysdig_sso_group_mapping` resource for managing SSO group-to-team
mappings via Platform API (`/platform/v1/group-mappings`)
- Add `sysdig_sso_group_mapping_settings` singleton resource for
no-mapping and role-conflict strategies
(`/platform/v1/group-mappings-settings`)
- Add `sysdig_sso_global_settings` per-product singleton for password
login configuration (`/platform/v1/global-sso-settings/{product}`)
- Deprecate legacy `sysdig_group_mapping` and
`sysdig_group_mapping_config` resources in favor of the new Platform API
resources
- Include acceptance tests and documentation for all three resources

Closes #694
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.

Add SSO resources using Platform API (group mappings & global settings)

3 participants