Commit f21c8e7
authored
feat(enterprises): Enterprise role binding resource (#580)
# Enterprise Role Bindings Resource
## Overview
This PR introduces the `castai_enterprise_role_binding` resource for managing enterprise role bindings in CAST AI, enabling programmatic access control across organizations.
## Features
- **Full Lifecycle Management**: Create, read, update, and delete operations for role bindings
- **Enterprise Context**: Manage role assignments at enterprise and organization levels
- **Multi-Subject Support**: Assign roles to users, service accounts, and groups
- **Batch Operations**: Efficient API calls for managing multiple bindings
## Key Capabilities
- Scoped role assignment with organization-level granularity
- Support for multiple subject types (users, service accounts, groups)
- Infrastructure-as-code approach for RBAC management
- Version-controlled access policies with audit trails
## Implementation
- **Changes**: 2,748 additions, 3 deletions
- **Status**: Approved by radekska
- **API Integration**: Uses Enterprise API batch operations for create, read, update, and delete
## Use Cases
- Define enterprise access policies as infrastructure
- Automate service account provisioning for CI/CD
- Implement hierarchical RBAC across organizations
- Maintain audit trails for compliance1 parent 589a78d commit f21c8e7
File tree
10 files changed
+2748
-3
lines changed- castai
- sdk
- docs/resources
- examples/enterprise_role_bindings
10 files changed
+2748
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
275 | | - | |
| 275 | + | |
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
| |||
0 commit comments