auth-methods 명령어

auth-methods 명령어

boundary auth-methods는 Boundary의 인증 메서드(auth method) 리소스를 관리하는 명령어예요. 인증 메서드는 사용자가 Boundary에 인증하는 메커니즘을 제공해요. 인증 메서드는 개별 사용자를 자격 증명 집합과 연결하는 accounts와, 특정 기준을 충족하는 계정을 묶어 역할(role)의 프린시펄로 쓸 수 있는 managed groups를 담아요.

출처: HashiCorp Boundary docs

본문

boundary auth-methods 명령어는 Boundary의 인증 메서드 리소스를 관리해요. 인증 메서드 리소스는 사용자가 Boundary에 인증하는 메커니즘을 제공해요. 인증 메서드는 개별 사용자를 자격 증명 집합과 연결하는 accounts를 담아요. 또 특정 기준을 충족하는 계정을 묶고 역할에서 프린시펄로 사용할 수 있는 managed groups도 담아요.

예제 (Examples)

다음 예제는 Boundary 클러스터 주소가 BOUNDARY_ADDR에, OIDC 공급자 클라이언트 ID가 CLIENT_ID에, 클라이언트 시크릿이 CLIENT_SECRET 환경 변수에 저장된 OIDC 인증 메서드를 구성해요.

$ boundary auth-methods create oidc \
   -issuer "https://dev-1sdl8c0z.us.auth0.com" \
   -client-id "$CLIENT_ID" \
   -client-secret "$CLIENT_SECRET" \
   -signing-algorithm RS256 \
   -api-url-prefix "$BOUNDARY_ADDR" \
   -name "auth0"

예제 출력:

Auth Method information:

  Created Time:         Fri, 09 Sep 2022 11:11:55 MDT
  ID:                   amoidc_40fr5jkLpk
  Name:                 auth0
  Type:                 oidc
  Updated Time:         Fri, 09 Sep 2022 11:11:55 MDT
  Version:              1

  Scope:
    ID:                 global
    Name:               global
    Type:               global

  Authorized Actions:
    no-op
    read
    update
    delete
    change-state
    authenticate

  Authorized Actions on Auth Method's Collections:
    accounts:
      create
      list
    managed-groups:
      create
      list

  Attributes:
    api_url_prefix:     https://e58fe114-7624-431c-994d-b6670e90b03J.boundary.hashicorp.cloud
    callback_url:       https://e58fe114-7624-431c-994d-b6670e90b03J.boundary.hashicorp.cloud/v1/auth-methods/oidc:authenticate:callback
    client_id:          zaxJLTZh3n14WqSQ7qQ9onuIVRDaZdzz
    client_secret_hmac: Qc3i8NdnTP6rl4JANIg-a2GXgRW5rEKTp2ReIK_BOng
    issuer:             https://dev-1sdl8c0z.us.auth0.com
    signing_algorithms: [RS256]
    state:              inactive

사용법 (Usage)

Usage: boundary auth-methods [sub command] [options] [args]

  # ...

Subcommands:
    change-state
    create          Create an auth method
    delete          Delete an auth method
    list            List an auth method
    read            Read an auth method
    update          Update an auth method

더 자세한 정보, 예제, 사용법은 사이드바에서 하위 명령어 이름을 클릭하거나 아래 링크를 참고하세요.

  • change-state
  • create
  • delete
  • list
  • read
  • update

더 알아보기 (Learn more)