Migrate Stores, AuthorizationModels and APIExportPolicies to openfga.platform-mesh.io
v26.11 renames security-operator to pm-openfga-operator, rebac-authz-webhook to pm-openfga-authz-webhook, and gives the OpenFGA kinds their own API group:
| before (deprecated) | after |
|---|---|
core.platform-mesh.io/v1alpha1 Store | openfga.platform-mesh.io/v1alpha1 Store |
core.platform-mesh.io/v1alpha1 AuthorizationModel | openfga.platform-mesh.io/v1alpha1 AuthorizationModel |
core.platform-mesh.io/v1alpha1 APIExportPolicy | openfga.platform-mesh.io/v1alpha1 APIExportPolicy |
APIExports fga.platform-mesh.io (stores), provider-fga.platform-mesh.io (authorizationmodels), system.platform-mesh.io (apiexportpolicies) | APIExports openfga.platform-mesh.io (stores, apiexportpolicies), provider-openfga.platform-mesh.io (authorizationmodels) |
WorkspaceType security (initializer/terminator root:security) | WorkspaceType openfga (initializer/terminator root:openfga) |
Helm charts security-operator, rebac-authz-webhook | pm-openfga-operator, pm-openfga-authz-webhook |
Secrets security-operator-kubeconfig, security-{initializer,terminator}-kubeconfig, rebac-authz-webhook-kubeconfig, rebac-authz-webhook-cert | pm-openfga-operator-kubeconfig, openfga-{initializer,terminator}-kubeconfig, pm-openfga-authz-webhook-kubeconfig, pm-openfga-authz-webhook-cert |
Both groups are served during the transition. pm-openfga-operator reconciles the deprecated kinds through the old exports while its LegacyAPIs feature gate is on (default true); requests against them get a deprecation Warning. pm-openfga-authz-webhook reads Stores from openfga.platform-mesh.io only.
What platform-mesh-operator does on its own
The openfga-apigroup-split migration step runs on every reconcile of the PlatformMesh once v26.11 is deployed. It changes the environment, never the deprecated objects themselves:
- Replaces
root:securitywithroot:openfgainspec.terminatorsandstatus.terminatorsof every organization and account LogicalCluster. Nothing serves the old terminator anymore; without this, deleting a workspace created before v26.11 would hang. - Binds
provider-openfga.platform-mesh.iointo every existing provider workspace, so the model generator writes AuthorizationModels there.root:orgsgetsopenfga.platform-mesh.iofrom the kcp manifests. - Renders the kcp authorization webhook kubeconfig and PKI under the new names. The old
rebac-authz-webhook-*Certificates and Secrets stay behind; delete them once the new webhook serves.
Skipped entirely when the feature-disable-openfga toggle is set.
What pm-openfga-operator does on its own
Stores and generated AuthorizationModels are platform-owned, so the operator moves them itself once the workspace binds the new export:
- For every deprecated
Storeinroot:orgsit creates theopenfga.platform-mesh.ioStore of the same name and spec. The new Store adoptsstatus.storeId,status.authorizationModelId,status.managedTuplesand theauthzmodel.core.platform-mesh.io/*dependency finalizers, and annotates the deprecated Storeopenfga.platform-mesh.io/migrated=true. No second OpenFGA store is created. The deprecated Store is deleted together with the organization (terminator) and released without touching OpenFGA. - The model generator writes its AuthorizationModels in the group the provider workspace bound (
provider-openfgapreferred). Once a new model adopted its deprecated twin, the generator deletes the twin.
Moving an APIExportPolicy to the new group
APIExportPolicy objects belong to providers. Deprecated ones keep working. To move one create the openfga.platform-mesh.io object next to it and remove the deprecated one afterwards:
- Create the
openfga.platform-mesh.io/v1alpha1object with the same name and spec in the same workspace (root:orgs). - pm-openfga-operator adopts it:
status.managedAllowExpressionsis copied and the deprecated object is annotatedopenfga.platform-mesh.io/migrated=true. From then on the deprecated object is no longer reconciled. - Wait until the new object reports
Ready. - Delete the deprecated object. A migrated object is released without removing the bind tuples.
Deleting the deprecated object before its successor exists removes the bind tuples. With GitOps, commit the new object first and the removal of the old one in a later change.
Operator checklist
Upgrade to v26.11 with
pm-openfga-operatorandpm-openfga-authz-webhookenabled in the profile (they are in the shippedkind-profile.yaml/production-profile.yaml); remove thesecurity-operatorandrebac-authz-webhookentries. Values keep their keys.Check the migration step ran:
shellkubectl -n platform-mesh-system logs deploy/platform-mesh-operator | grep openfga-apigroup-splitCheck every organization Store moved:
shellKUBECONFIG=<kcp admin kubeconfig> kubectl get stores.openfga.platform-mesh.io --server=<kcp>/clusters/root:orgs kubectl get stores.core.platform-mesh.io --server=<kcp>/clusters/root:orgs \ -o custom-columns='NAME:.metadata.name,MIGRATED:.metadata.annotations.openfga\.platform-mesh\.io/migrated'Move your
APIExportPolicymanifests toopenfga.platform-mesh.io/v1alpha1as described above.Remove the orphaned webhook PKI:
shellkubectl -n platform-mesh-system delete certificate rebac-authz-webhook-cert rebac-authz-webhook-ca kubectl -n platform-mesh-system delete issuer rebac-authz-webhook-ca-issuer rebac-authz-webhook-selfsigned-issuer kubectl -n platform-mesh-system delete secret rebac-authz-webhook-cert rebac-authz-webhook-ca rebac-authz-webhook-kubeconfig kubectl -n platform-mesh-system delete secret security-operator-kubeconfig security-initializer-kubeconfig security-terminator-kubeconfigOnce no deprecated objects are left anywhere:
shellkubectl get apiexportpolicies.core.platform-mesh.io --server=<kcp>/clusters/root:orgs kubectl get authorizationmodels.core.platform-mesh.io --server=<kcp>/clusters/root:providers:<provider>pm-openfga-operator can run with
--feature-gates=LegacyAPIs=false(chart valuefeatureGates.LegacyAPIs: false). The deprecated kinds, thefga/provider-fgaexports and theapiexportpoliciesresource of thesystemexport are removed in a later release, together with thesecurityWorkspaceType.
Rollback
Deprecated objects that were not moved are unaffected by a downgrade. A moved object has its deprecated twin marked openfga.platform-mesh.io/migrated=true; remove that annotation to hand the OpenFGA state back to the deprecated object. Terminators must be switched back to root:security by hand.