MaaSAuthPolicy¶
BFF representation of a MaaSAuthPolicy Kubernetes custom resource
Type: object
Properties¶
| Property | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Name of the MaaSAuthPolicy resource Example: |
namespace | string | Yes | Namespace of the MaaSAuthPolicy resource Example: |
displayName | string | No | Human-readable display name for the policy Example: |
description | string | No | Description of the policy Example: |
phase | string | No | Current phase of the auth policy (from status) Allowed values: Example: |
statusMessage | string | No | Human-readable status message from the Ready condition in status.conditions Example: |
reason | string | No | Reason from the Ready condition in status.conditions Example: |
status | string | No | Status from the Ready condition in status.conditions (e.g. True, False, Unknown) Example: |
conditionType | string | No | Condition type from the Ready condition in status.conditions Example: |
lastTransitionTime | string (date-time) | No | lastTransitionTime from the Ready condition in status.conditions Example: |
creationTimestamp | string (date-time) | No | Timestamp when the policy was created Example: |
modelRefs | array of ModelRef | Yes | Models this policy grants access to |
subjects | SubjectSpec | Yes | |
meteringMetadata | TokenMetadata | No | |
deletionTimestamp | string (date-time) | No | When set, the policy is marked for deletion (Kubernetes metadata.deletionTimestamp) |
Example¶
{
"name": "premium-team-sub-policy",
"namespace": "maas-system",
"displayName": "Premium Team Policy",
"description": "High-priority access policy for the premium team.",
"phase": "Active",
"statusMessage": "successfully reconciled",
"reason": "Reconciled",
"status": "True",
"conditionType": "Ready",
"lastTransitionTime": "2026-01-01T00:00:00Z",
"creationTimestamp": "2025-03-01T10:00:00Z",
"modelRefs": [
{
"name": "llama-2-7b-chat",
"namespace": "maas-models"
}
],
"subjects": {
"groups": [
{
"name": "premium-users"
}
]
},
"meteringMetadata": {
"organizationId": "org-123",
"costCenter": "engineering",
"labels": {
"key": "string"
}
},
"deletionTimestamp": "2024-01-31T09:30:00Z"
}