시크릿 적용 계획 규격
이 문서는openclaw secrets apply가 강제하는 엄격한 contract를 정의합니다.
target이 아래 규칙을 충족하지 않으면, 실제 config를 변경하기 전에 apply가 실패합니다.
Plan file shape
openclaw secrets apply --from <plan.json>은 targets 배열을 포함한 다음 구조를 기대합니다.
Supported target scope
plan targets는 다음 문서에 나오는 supported credential paths에 대해서만 허용됩니다.Target type behavior
General rule:target.type은 인식 가능한 값이어야 하며, 정규화된target.pathshape와 일치해야 합니다.
models.providers.apiKeyskills.entries.apiKeychannels.googlechat.serviceAccount
Path validation rules
각 target은 다음 조건을 모두 통과해야 합니다.type은 인식 가능한 target type이어야 합니다.path는 비어 있지 않은 dot path여야 합니다.pathSegments는 생략할 수 있습니다. 제공되면 정규화 결과가path와 정확히 같아야 합니다.- 금지된 segments는 거부됩니다:
__proto__,prototype,constructor - 정규화된 path는 target type에 등록된 path shape와 일치해야 합니다.
providerId또는accountId가 있으면 path 안에 인코딩된 id와 일치해야 합니다.auth-profiles.jsontargets에는agentId가 필요합니다.- 새
auth-profiles.jsonmapping을 만들 때는authProfileProvider를 포함해야 합니다.
Failure behavior
target이 검증에 실패하면 다음과 같은 오류와 함께 즉시 종료합니다.Runtime and audit scope notes
- ref-only
auth-profiles.json항목 (keyRef,tokenRef)은 runtime resolution과 audit coverage에 포함됩니다. secrets apply는 supportedopenclaw.jsontargets, supportedauth-profiles.jsontargets, optional scrub targets를 기록합니다.
Operator checks
openclaw secrets configure로 plan을 다시 생성하거나 위 규칙에 맞게 target path를 수정하세요.