Error while creating L7 intentions

rpc error making call: service “service-b” has protocol “tcp”, which is incompatible with L7 intentions permissions

Getting this error while creating L7 intentions.

curl --location --request PUT '<URL>/v1/connect/intentions/exact?source=service-a&destination=service-b' \
--header 'Content-Type: application/json' \
--data-raw '{
    "Description": "Intentions",
    "Permissions": [
        {
            "Action": "allow",
            "HTTP": {
                "PathExact": "/",
                "Methods": [
                    "GET"
                ]
            }
        }
    ]
}'
  1. Do we need services to be up and running before creating the L7 intentions?

Even when the services are up it’s throwing error.

Couldn’t find much documentation around it.

The error message says it all… you can’t enforce L7 restrictions on a non-L7 service.