`accounts set-password` — 계정 비밀번호 설정하기

accounts set-password — 계정 비밀번호 설정하기

boundary accounts set-password 명령어는 타입이 맞고 주어진 계정 타입이 이 연산을 허용하면 계정 타입 리소스의 비밀번호를 설정해요.

출처: HashiCorp Boundary docs

본문

예시 (Examples)

다음 예시는 비밀번호 타입 계정의 비밀번호를 설정해요. -password 파라미터 없이 명령어를 실행하면 비밀번호 값을 입력하라는 메시지가 나와요.

$ boundary accounts set-password -id acctpw_1234567890
Please enter the password (it will be hidden):
Please enter it one more time for confirmation:

예시 출력:

Account information:
  Auth Method ID:      ampw_1234567890
  Created Time:        Wed, 12 Jul 2023 12:20:54 PDT
  ID:                  acctpw_1234567890
  Type:                password
  Updated Time:        Wed, 12 Jul 2023 22:08:12 PDT
  Version:             2

  Scope:
    ID:                global
    Name:              global
    Type:              global

  Authorized Actions:
    no-op
    read
    update
    delete
    set-password
    change-password

  Attributes:
    Login Name:        admin

출력은 계정 정보를 보여줘요.

사용법 (Usage)

$ boundary accounts set-password [options] [args]

명령 옵션 (Command options)

  • -id (string: "") — 비밀번호를 설정할 계정의 ID예요.
  • -password (string: "") — 계정의 비밀번호예요. 이 값은 env:// 또는 file:// 구문과 함께 사용해요. 비밀번호를 지정하지 않으면 명령어가 비밀번호를 화면에 보여주지 않고 입력하라는 메시지를 띄워요.
  • -version (int: 0) — 갱신 연산을 수행할 대상 계정의 버전이에요. 버전을 지정하지 않으면 명령어가 자동으로 check-and-set을 수행해요.