# Agent는 서비스 계정보다 더 좁게

> identity lifecycle, token matrix, RBAC+ABAC와 secret rotation

- Canonical: https://learning.reopt.ai/en/courses/ai-security-compliance/lessons/as-m3-concept
- Language: en
- HTML: https://learning.reopt.ai/en/courses/ai-security-compliance/lessons/as-m3-concept

---

[AI security & compliance](/en/courses/ai-security-compliance) 3. Agent Identity·접근제어 5 / 9

# Agent는 서비스 계정보다 더 좁게

identity lifecycle, token matrix, RBAC+ABAC와 secret rotation
Concept 45 XP 9 min

신뢰 수준은 사람(High)→서비스 계정(Medium)→agent(Low)로 두고 agent 권한을 항상 서비스 계정 이하로 유지합니다. agent identity는 자동 생성·폐기를 기본으로 하고, 고위험 작업에는 요청 단위 ephemeral token을 사용합니다.
역할 뒤에 상황 조건을 붙인다 RBAC로 기본 역할을 제한한 뒤 ABAC로 env·금액·tenant·approval 조건을 추가합니다. prod·결제·삭제·외부 전송은 짧은 token과 별도 승인을 요구합니다.

| Token | 권장 수명 | 적합한 용도 |
| Short-lived | 15~60분 | 일반 세션·read task |
| Scoped service | 최대 24시간 | 제한된 batch·workflow |
| Ephemeral | 요청 단위 | 결제·삭제·외부 전송 |
| Delegated | 승인/업무 범위 | 사용자 권한 위임 |
| Long-lived key | 최대 90일 | 불가피한 legacy, 강한 rotation |

- 1 Identity 발급 task·tenant·owner와 TTL을 연결합니다.

- 2 Scope 최소화 resource·action·env·금액 조건을 제한합니다.

- 3 Secret 분리 agent runtime에 원본 장기 credential을 노출하지 않습니다.

- 4 회수·감사 완료·timeout·incident에 자동 폐기하고 access trail을 남깁니다.

실무에 남길 기준

- agent identity는 자동 생성·짧은 수명·자동 폐기가 기본이다
- RBAC만으로 부족한 고위험 조건은 ABAC와 승인으로 제한한다
- Exposure Window를 줄이려면 rotation과 실시간 유출 탐지가 함께 필요하다

[Previous](/en/courses/ai-security-compliance/lessons/as-m2-scenario) Got it · Continue

---

Site guide for agents: https://learning.reopt.ai/llms.txt · Sitemap: https://learning.reopt.ai/sitemap.xml · Contact: https://learning.reopt.ai/contact
