Atlas Kubernetes Operator supports using federated authentication for your Atlas organization.
참고
You can't use Atlas Kubernetes Operator to set up an IdP. To set up an IdP, see Configure Database Deployment Authentication and Authorization.
IdP 를 설정한 후에는 사용자가 IdP 를 사용하도록 인증하는 역할 매핑을 관리할 수 있습니다.
Atlas Kubernetes Operator를 통해 페더레이션 인증을 구성하려면 AtlasFederatedAuth 사용자 지정 리소스를 지정하고 업데이트해야 합니다.
When you create the AtlasFederatedAuth custom resource, Atlas Kubernetes Operator uses the Federated Authentication API Resource to update the organization configuration for the federation. In the organization configuration, you specify federation settings for your Atlas organization such as organization and role mappings.
The AtlasFederatedAuth Custom Resource is not required to map database users to an IdP, both any existing authentication IdP or workload and workforce IdP. You can use the AtlasDatabaseUser custom resource to manage database users, in which you specify the authentication method used for a given database user. The AtlasDatabaseUser custom resource must be configured in conjunction with federated authentication to associate users and roles in the IdP with users and groups in MongoDB.
AtlasFederatedAuth Custom Resource(사용자 지정 리소스)는 Atlas 의 다른 곳에서 구성한 경우 페더레이션 인증 사용할 수 있는 선택 사항입니다.
전제 조건
Atlas Kubernetes Operator를 사용하여 페더레이션 인증을 구성하려면 먼저 다음이 필요합니다.
An existing identity provider (IdP) linked to Atlas. To learn how to link an IdP to Atlas, see Manage Identity Providers.
Atlas Kubernetes Operator Atlas 에 연결하는 데 사용할 수 있는 API 키가 포함된 시크릿입니다. API 키에는
Organization Owner역할 있어야 합니다.활성 Atlas 조직 또는 조직의 프로젝트 내에서 하나 이상의 역할 .
조직 구성 업데이트
Atlas Kubernetes Operator를 통해 페더레이션 인증을 구성하려면 AtlasFederatedAuth 사용자 지정 리소스를 지정하여 페더레이션의 조직 구성을 업데이트합니다.
다음 예시에서는 다음을 수행하는 AtlasFederatedAuth 사용자 지정 리소스를 구성합니다.
지정된 시크릿에 연결된 조직에 대해 페더레이션 인증 활성화합니다.
my-org-domain.com을(를) 승인된 도메인으로 추가합니다.조직에 대한 도메인 제한을 활성화합니다.
SSO 에 대한 디버깅을 비활성화합니다.
Grants the
Organization Memberrole to users after authenticating.Maps the
Organization Ownerrole for the organization and applies the role mapping to an IdP group namedorg-admin.Maps the
Organization Project CreatorandProject Ownerroles for a project in the organization nameddev-projectand applies the role mapping to an IdP group nameddev-team.
자세히 알아보려면 매개변수를 참조하세요.
참고
spec.roleMappings.roleAssignments 매개 변수에는 현재 조직 또는 조직의 프로젝트 내 조직 역할이 하나 이상 포함되어야 합니다.
예시:
cat <<EOF | kubectl apply -f - apiVersion: atlas.mongodb.com/v1 kind: AtlasFederatedAuth metadata: name: atlas-default-federated-auth namespace: mongodb-atlas-system spec: enabled: true dataAccessIdentityProviders: - 32b6e34b3d91647abb20e7b8 - 42d8v92k5a34184rnv93f0c1 connectionSecretRef: name: my-org-secret namespace: mongodb-atlas-system domainAllowList: - my-org-domain.com domainRestrictionEnabled: true ssoDebugEnabled: false postAuthRoleGrants: - ORG_MEMBER roleMappings: - externalGroupName: org-admin roleAssignments: - role: ORG_OWNER - externalGroupName: dev-team roleAssignments: - role: ORG_GROUP_CREATOR - projectName: dev-project role: GROUP_OWNER EOF
업데이트 프로세스의 상태를 확인하려면 다음 명령을 실행합니다.
kubectl get atlasfederatedauth -o yaml
Atlas Kubernetes Operator는 사용자 지정 리소스를 반환하며 다음 예시와 유사한 상태 섹션을 포함합니다.
status: conditions: - type: Ready status: True - type: RolesReady status: True - type: UsersReady status: True
이 리소스에 사용할 수 있는 매개 변수에 대해 알아보려면 AtlasFederatedAuth 사용자 지정 리소스를 참조하세요.