cashapp / misk

Microservice Kontainer
https://cashapp.github.io/misk/
391 stars 166 forks source link

Add `allowAnyService` and `allowAnyUser` to `AccessAnnotationEntry` inline function #3257

Closed addissemagn closed 2 months ago

addissemagn commented 2 months ago

This PR updates the inline function for constructing an AccessAnnotationEntry to include allowAnyService and allowAnyUser boolean parameters, following a recent change that requires these over empty lists for services and capabilities. This simplifies AccessAnnotationEntry usage, eliminating the need for services to create custom constructors or modify the returned class, as the data constructor defaults the parameters to false.