RoutePolicy
Route policies control which Cloud Foundry apps, spaces, or organizations can access routes on identity-aware domains. When a domain has enforce_route_policies enabled, GoRouter automatically enforces these access controls using mutual TLS (mTLS) to verify the identity of the calling application.
Route policies are defined using a source selector that specifies who can access the route:
cf:app:<uuid>- Allow a specific appcf:space:<uuid>- Allow all apps in a spacecf:org:<uuid>- Allow all apps in an organizationcf:any- Allow any caller (cannot be combined with other sources on the same route)
Note: Route policies can only be created for routes on domains where
enforce_route_policiesistrueand the domain is not internal (internal routes use container-to-container networking and bypass GoRouter).
This feature is experimental and is subject to change.
{
"guid": "string",
"created_at": "string",
"updated_at": "string",
"source": "string",
"metadata": {
"labels": {
"labels": "string"
},
"annotations": {
"annotations": "string"
}
},
"relationships": {
"route": {
"data": {
"guid": "string"
},
"links": {
"self": {
"href": "string",
"method": "string"
},
"related": {
"href": "string",
"method": "string"
}
}
},
"app": {
"data": {
"guid": "string"
},
"links": {
"self": {
"href": "string",
"method": "string"
},
"related": {
"href": "string",
"method": "string"
}
}
},
"space": {
"data": {
"guid": "string"
},
"links": {
"self": {
"href": "string",
"method": "string"
},
"related": {
"href": "string",
"method": "string"
}
}
},
"organization": {
"data": {
"guid": "string"
},
"links": {
"self": {
"href": "string",
"method": "string"
},
"related": {
"href": "string",
"method": "string"
}
}
}
},
"links": {
"self": {
"href": "string",
"method": "string"
},
"route": {
"href": "string",
"method": "string"
},
"app": {
"href": "string",
"method": "string"
},
"space": {
"href": "string",
"method": "string"
},
"organization": {
"href": "string",
"method": "string"
}
},
"included": {
"spaces": [
"Space Object"
],
"organizations": [
{
"guid": "string",
"created_at": "string",
"updated_at": "string",
"name": "string",
"suspended": false,
"relationships": {
"quota": {
"data": {
"guid": "string"
},
"links": {
"self": {
"href": "string",
"method": "string"
},
"related": {
"href": "string",
"method": "string"
}
}
}
},
"metadata": {
"labels": {
"labels": "string"
},
"annotations": {
"annotations": "string"
}
},
"links": {
"self": {
"href": "string",
"method": "string"
},
"domains": {
"href": "string",
"method": "string"
},
"quota": {
"href": "string",
"method": "string"
},
"default_domain": {
"href": "string",
"method": "string"
}
}
}
],
"domains": [
{
"guid": "string",
"created_at": "string",
"updated_at": "string",
"name": "string",
"internal": false,
"router_group": {
"guid": "string"
},
"supported_protocols": [
"string"
],
"enforce_route_policies": false,
"route_policies_scope": "string",
"relationships": {
"organization": {
"data": {
"guid": "string"
},
"links": {
"self": {
"href": "string",
"method": "string"
},
"related": {
"href": "string",
"method": "string"
}
}
},
"shared_organizations": {
"data": [
{
"guid": "string"
}
],
"links": {
"self": {
"href": "string",
"method": "string"
},
"related": {
"href": "string",
"method": "string"
}
}
}
},
"metadata": {
"labels": {
"labels": "string"
},
"annotations": {
"annotations": "string"
}
},
"links": {
"self": {
"href": "string",
"method": "string"
},
"organization": {
"href": "string",
"method": "string"
},
"route_reservations": {
"href": "string",
"method": "string"
},
"shared_organizations": {
"href": "string",
"method": "string"
},
"router_group": {
"href": "string",
"method": "string"
}
}
}
],
"service_offerings": [
{
"guid": "string",
"created_at": "string",
"updated_at": "string",
"service_broker_guid": "string",
"service_broker_name": "string",
"metadata": {
"labels": {
"labels": "string"
},
"annotations": {
"annotations": "string"
}
},
"links": {
"self": {
"href": "string",
"method": "string"
},
"service_plans": {
"href": "string",
"method": "string"
},
"service_broker": {
"href": "string",
"method": "string"
}
}
}
],
"service_instances": [
{
"guid": "string",
"created_at": "string",
"updated_at": "string",
"type": "string",
"name": "string",
"tags": [
"string"
],
"syslog_drain_url": "string",
"route_service_url": "string",
"dashboard_url": "string",
"maintenance_info": {
"version": "string",
"description": "string"
},
"upgrade_available": false,
"last_operation": {
"type": "string",
"state": "string",
"description": "string",
"created_at": "string",
"updated_at": "string"
},
"relationships": {
"space": {
"data": {
"guid": "string"
},
"links": {
"self": {
"href": "string",
"method": "string"
},
"related": {
"href": "string",
"method": "string"
}
}
},
"service_plan": {
"data": {
"guid": "string"
},
"links": {
"self": {
"href": "string",
"method": "string"
},
"related": {
"href": "string",
"method": "string"
}
}
}
},
"links": {
"self": {
"href": "string",
"method": "string"
},
"space": {
"href": "string",
"method": "string"
},
"service_plan": {
"href": "string",
"method": "string"
},
"parameters": {
"href": "string",
"method": "string"
},
"service_credential_bindings": {
"href": "string",
"method": "string"
},
"service_route_bindings": {
"href": "string",
"method": "string"
},
"shared_spaces": {
"href": "string",
"method": "string"
}
},
"metadata": {
"labels": {
"labels": "string"
},
"annotations": {
"annotations": "string"
}
}
}
],
"apps": [
"App Object"
],
"routes": [
"Route Object"
],
"users": [
{
"guid": "string",
"created_at": "string",
"updated_at": "string",
"username": "string",
"presentation_name": "string",
"origin": "string",
"metadata": {
"labels": {
"labels": "string"
},
"annotations": {
"annotations": "string"
}
},
"links": {
"self": {
"href": "string",
"method": "string"
}
}
}
]
}
}