Skip to content

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: premium-team-sub-policy

namespace string Yes

Namespace of the MaaSAuthPolicy resource

Example: maas-system

displayName string No

Human-readable display name for the policy

Example: Premium Team Policy

description string No

Description of the policy

Example: High-priority access policy for the premium team.

phase string No

Current phase of the auth policy (from status)

Allowed values: Pending, Active, Failed

Example: Active

statusMessage string No

Human-readable status message from the Ready condition in status.conditions

Example: successfully reconciled

reason string No

Reason from the Ready condition in status.conditions

Example: Reconciled

status string No

Status from the Ready condition in status.conditions (e.g. True, False, Unknown)

Example: True

conditionType string No

Condition type from the Ready condition in status.conditions

Example: Ready

lastTransitionTime string (date-time) No

lastTransitionTime from the Ready condition in status.conditions

Example: 2026-01-01T00:00:00Z

creationTimestamp string (date-time) No

Timestamp when the policy was created

Example: 2025-03-01T10:00:00Z

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"
}