InfoGrab DocsInfoGrab Docs

서버 접근 제어

Teleport 서버 접근을 위한 역할 기반 접근 제어(RBAC).

Teleport의 역할 기반 접근 제어(RBAC) 시스템을 사용하면 Teleport에 연결된 Linux 서버에 대한 인증을 세밀하게 제어하는 권한을 설정할 수 있습니다. 정책의 한 예로 서버 관리자는 모든 것에 접근할 수 있고, QA 팀과 엔지니어는 스테이징 서버에 대한 전체 접근 권한을 가지며, 엔지니어는 긴급 상황 시 프로덕션 서버에 대한 임시 접근 권한을 얻을 수 있다 와 같은 정책을 들 수 있습니다. 이 페이지에서는 Teleport로 보호되는 서버에 대한 접근을 구성하기 위해 Teleport 역할에서 사용할 수 있는 구성 옵션을 설명합니다. Teleport 역할에 대한 보다 일반적인 설명과 예시는 접근 제어 가이드 를 참조하세요. 이 섹션은 Teleport에 연결된 서버에 대한 RBAC를 구성하는 데 초점을 맞춥니다. 역할 구성 # Teleport의 "역할" 리소스는 서버 접근을 제한하기 위해 다음과 같은 수단을 제공합니다. kind: role version: v5 metadata: name: developer spec: allow: # The logins array defines the OS/UNIX logins a user is allowed to use. # both strings and template variables are supported in this field logins: [ ubuntu , debian , '{{internal.logins}}' ] # node_labels: a user with this role will be allowed to connect to # SSH nodes whose labels match any of the expressions below. node_labels: # literal strings: 'env': 'test' # the wildcard ('*') means "any node" '*': '*' # a list of allowed values: 'region': [ 'us-west-1' , 'eu-central-1' ] # regular expressions start with ^ and end with $ # Teleport uses Go's regexp syntax (https://github.com/google/re2/wiki/Syntax) # the list example above can be expressed as: 'reg': '^us-west-1|eu-central-1$' # List of host groups the created user will be added to. Any that don't # already exist are created. Only applies when create_host_user_mode # is not 'off'. host_groups: [ ubuntu , nginx , other ] # Assign the user to the sudoers group host_sudoers: - 'ALL=(ALL) NOPASSWD: AL