typesafehub / sbt-conductr

Typesafe ConductR plugin for sbt
Other
29 stars 22 forks source link

Play Applications need non-default ACL when coexisting with Lagom #235

Closed ignasi35 closed 6 years ago

ignasi35 commented 7 years ago

ConductR will default ACLs for play Apps to path-beg = "/". When deploying a Lagom system that exposes some internal APIs through the service gateway that ACL will clash with the ACLs provided by the services.

To support that scenario, Lagom requires every runtime to define ACLs (both lagom services and play apps sitting behind a service gateway) by means of Lagom's ServiceInfo (see Service Metadata).

See an example of that behavior in snippets 1 vs 2 belonging to the sbt-test/play-and-lagom-service-scala test. This test, as currently written is passing because the spec is not fulfilled (or the spec is wrong since attempting to use that sample app would not be possible because FooService is unreachable).

ignasi35 commented 7 years ago

related to #148