그룹
그룹 (Groups)
Kong Gateway에서 그룹(Group)은 RBAC을 위한 리소스예요. 관리자가 그룹에 권한과 역할을 매핑해 두면 Kong Gateway 전반에서 역할 할당을 훨씬 간편하게 관리할 수 있어요. Okta 같은 아이덴티티 프로바이더를 Kong Manager와 연동해 서비스 디렉터리의 사용자 관계를 역할에 매핑할 때도 그룹을 활용해요
출처: 문서
본문
Group이란 무엇인가요?
Kong Gateway에서 Group 엔티티는 RBAC를 위한 리소스 역할을 해요. Kong Gateway Admin은 Group에 Permission과 Role을 매핑할 수 있고, Group을 활용해 Kong Gateway 환경 전반에서 Role 할당을 간소화할 수 있어요.
Group 리소스는 Okta 같은 아이덴티티 프로바이더를 Kong Manager와 통합하는 용도로도 사용할 수 있어요. 이를 통해 서비스 디렉터리 매핑과 Kong Manager Role 사이의 관계를 매핑할 수 있어요.
서비스 디렉터리 매핑
서비스 디렉터리 매핑을 사용하면 Group을 RBAC Role에 매핑할 수 있어요. 사용자가 Kong Manager에 로그인하면 Admin 사용자 이름으로 식별되고, LDAP 같은 서비스 디렉터리의 사용자 자격 증명으로 인증돼요. 서비스 디렉터리는 Kong Gateway에서 정의된 연관 RBAC Role과 관계를 만들어요. 이 과정은 다음 순서로 진행돼요:
- Kong Gateway에서 Role을 생성해요.
- Group을 생성하고 RBAC Role과 연결해요.
- Group을 외부 디렉터리와 연결해요.
- Group 할당을 기준으로 Kong Gateway 사용자에게 Permission을 할당해요.
RBAC Group 생성
RBAC Group을 생성하려면 Kong Gateway에서 RBAC가 활성화되어 있어야 해요.
Admin API
Group을 생성하려면 Admin API의 /groups 엔드포인트를 호출하세요.
curl -i -X POST http://localhost:8001/groups/ \
--header "Accept: application/json" \
--header "Content-Type: application/json" \
--data '
{
"name": "my-group",
"comment": "A description associated with this group."
}
'
UI
다음 지침을 따르면 Kong Manager에서 Group을 생성할 수 있어요. Group은 RBAC의 기능이므로 RBAC가 활성화되어 있어야 해요.
- Kong Manager에서 Teams로 이동하세요.
- Groups 탭을 클릭하세요.
- New Group을 클릭하세요.
- Group 이름을 입력하세요.
- Add/Edit Roles를 선택해 이 Group에 Role을 할당하세요.
- Create를 클릭하세요.
스키마
{
"additionalProperties": false,
"example": {
"comment": "This is an example comment for the group.",
"created_at": 1706598432.0,
"id": "d4e7f2c9-8a7b-4e89-b3a1-9c3d6f1e5b92",
"name": "example-group",
"updated_at": 1706684832.0
},
"properties": {
"comment": {
"description": "Any comments associated with the specific group.",
"nullable": true,
"type": "string"
},
"created_at": {
"description": "Unix epoch when the resource was created.",
"nullable": true,
"type": "integer"
},
"id": {
"description": "A string representing a UUID (universally unique identifier).",
"nullable": true,
"type": "string"
},
"name": {
"description": "The name of the group",
"type": "string"
},
"updated_at": {
"description": "Unix epoch when the resource was last updated.",
"nullable": true,
"type": "integer"
}
},
"required": [
"name"
],
"type": "object"
}
FAQ
-
Group 엔티티는 어떤 인증 유형과 함께 사용할 수 있나요? Group 엔티티는 다음 인증 프로토콜과 함께 동작해요: Basic 인증, LDAP 인증, 그리고 OpenID Connect (OIDC).
인증 프로토콜이 Kong Gateway 및 Kong Manager와 함께 동작하도록 설정하는 작업은
kong.conf로 진행해요.
관련 리소스
더 알아보기 (Learn more)
- 그룹에 역할과 권한을 매핑할 때 바탕이 되는 RBAC 역할 구성 개념이에요 — RBAC
- LDAP 서비스 디렉터리와 그룹을 매핑하는 방법을 자세히 다뤄요 — LDAP Service Directory Mapping
- 그룹에 속해 권한을 부여받는 관리자 엔티티의 설명이에요 — Admins entity
- 서비스 디렉터리 연동에 쓰이는 LDAP 인증 플러그인 소개예요 — LDAP authentication
- Okta 같은 아이덴티티 프로바이더 연동에 활용되는 OIDC 플러그인이에요 — OpenID Connect (OIDC)