When an HTTP request path is mapped to a policy module name by the HttpPathPolicyMapper, if hyphen characters are present in the request path, the resulting Rego policy package name uses the hyphen, and is an illegal Rego package name. For example, with a request path of /api/v1/fire-hydrants/{id}, the resulting policy module name is root.GET.api.vi.fire-hydrants.__id. The hyphen should instead be replaced with an underscore: root.GET.api.vi.fire_hydrants.__id.
Aserto Spring Version: 0.2.0
Spring Boot: 3.3.0
Java Version: 22.0.1
When an HTTP request path is mapped to a policy module name by the
HttpPathPolicyMapper,
if hyphen characters are present in the request path, the resulting Rego policy package name uses the hyphen, and is an illegal Rego package name. For example, with a request path of/api/v1/fire-hydrants/{id}
, the resulting policy module name isroot.GET.api.vi.fire-hydrants.__id
. The hyphen should instead be replaced with an underscore:root.GET.api.vi.fire_hydrants.__id
.Aserto Spring Version: 0.2.0 Spring Boot: 3.3.0 Java Version: 22.0.1