`accounts change-password` — 계정 비밀번호 변경하기

accounts change-password — 계정 비밀번호 변경하기

boundary accounts change-password 명령어는 타입이 맞고 주어진 계정 타입이 이 연산을 허용하면 계정 리소스의 비밀번호를 재설정해요. 비밀번호 재설정을 완료하려면 현재 비밀번호를 확인해야 해요.

출처: HashiCorp Boundary docs

본문

예시 (Examples)

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

$ boundary accounts change-password -id acctpw_1234567890
Please enter the current password (it will be hidden):
Please enter the new 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:29:59 PDT
  Version:             5

  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 change-password [options] [args]

명령 옵션 (Command options)

  • -current-password (string: "") — 계정의 현재 비밀번호예요. 현재 비밀번호를 지정하지 않으면 명령어가 비밀번호를 화면에 보여주지 않고 입력하라는 메시지를 띄워요.
  • -id (string: "") — 비밀번호를 변경할 계정의 ID예요.
  • -new-password (string: "") — 새 계정 비밀번호예요. 새 비밀번호를 지정하지 않으면 명령어가 비밀번호를 화면에 보여주지 않고 입력하라는 메시지를 띄워요.
  • -version (int: 0) — 비밀번호 재설정 연산을 수행할 대상 계정의 버전이에요. 버전을 지정하지 않으면 명령어가 자동으로 check-and-set을 수행해요.