다크 모드
명령 레퍼런스: 인증
pob login
local-browser/device authorization 아래 agent installation enrollment를 수행해요.
입력
| 옵션 | 필수 | 규칙 |
|---|---|---|
--api-base-url | yes | §5.2 URL 규칙 |
--project-ref | yes | exact server project ref |
--environment | yes | local/test만. staging → exit 8 environment_blocked, production → exit 8 production_blocked |
--scope | yes, repeatable | scope registry의 exact scope, 최소 하나. 중복 reject |
--job-ref, --step-ref, --attempt-index | optional, all-or-none | automation-triggered login의 job binding tuple |
--non-interactive | optional | 지정 시 정확히 exit 8 interactive_required |
--timeout-ms | optional | global 규칙 |
예시
sh
pob login --api-base-url https://api.test.pob.example \
--project-ref prj_01JEXAMPLE \
--environment test \
--scope project:read --scope validation:run --scope artifact:write \
--json성공 result 예시 (shape 예시)
json
{
"enrollment_state": "completed",
"agent_installation_ref": "ain_example",
"agent_credential_family_ref": "acf_example",
"project_ref": "prj_01JEXAMPLE",
"environment": "test",
"granted_scopes": ["artifact:write", "project:read", "validation:run"],
"credential_storage": "os_keychain",
"user_approval_display_digest": "…server-confirmed digest…",
"expires_at": "2027-01-01T00:00:00Z"
}raw access token/refresh credential/ticket/private key는 어디에도 출력되지 않아요.
실패 모드 주의
- enrollment ticket 전송 후 응답 불명확 → exit 12
operation_outcome_unknown(자동 재전송 없음) - replay/quarantine 계열 → exit 3,
retryable=false. CLI는 자동 복구하지 않아요.
pob logout
현재 credential family의 self-revoke와 local deletion.
- command-specific 옵션 없음. global
--api-base-url/--project-ref/--environment필수,--credential-family-ref는 ambiguous 시에만. - revocation은 family 단위 terminal operation으로 proof nonce replay 방어를 사용하므로
Idempotency-Key를 보내지 않아요.
sh
pob logout --api-base-url https://api.test.pob.example \
--project-ref prj_01JEXAMPLE --environment test --json성공 result: agent_credential_family_ref, server_revocation_state=revoked, local_credential_deleted=true (false면 성공 아님).
오류 deterministic mapping:
- outage(요청 미적용 확정) + local 삭제 성공 → exit 9
dependency_unavailable - outage(적용 불명확) + local 삭제 성공 → exit 12
operation_outcome_unknown - local 삭제 실패 → exit 11
local_state_unsafe(server outcome보다 우선)
pob auth status
credential/capability/environment 상태 read (read-only). server-backed global binding 필요.
sh
pob auth status --api-base-url https://api.test.pob.example \
--project-ref prj_01JEXAMPLE --environment test --json성공 result exact fields:
| 필드 | 규칙 |
|---|---|
credential_state | active/expired/revoked/superseded/replayed/quarantined/disabled/unknown |
agent_installation_ref, agent_credential_family_ref | redacted ref |
granted_scopes | exact array |
usable_scopes | 현재 entitlement와의 server 계산 결과 |
capabilities | 각 item은 capability, state, blocking_reason만 |
environment, project_ref | exact binding |
credential_state=unknown은 usable 상태가 아니며, doctor 외의 mutating command는 진행하지 않아요.
상태 참고
현재 구현에서 auth status 등 server-backed resource command는 broker의 in-memory access token binding에 아직 연결되지 않아 agent_auth_required로 fail closed해요. synthetic 결과를 만들지 않아요. 상태 페이지 참고.