You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by ghferrari November 4th, 2024
First of all, thanks to the Spring Modulith team for this great package. :-)
If I've understood the documentation for version 1.2.5, Spring Modulith currently uses an “allow-by-default” access model i.e. access to other modules is allowed unless explicitly restricted. Is there a way to switch to a "deny-by-default” permission model? In this scenario, access to other modules would be forbidden by default unless specifically granted? I think this would be a useful feature.
The text was updated successfully, but these errors were encountered:
This is currently not possible, but a very reasonable thing to ask for. As a workaround, you could use an ArchUnit rule that verifies @ApplicationModule being used and the allowedDependencies attribute set to a non-empty array.
Discussed in #923
Originally posted by ghferrari November 4th, 2024
First of all, thanks to the Spring Modulith team for this great package. :-)
If I've understood the documentation for version 1.2.5, Spring Modulith currently uses an “allow-by-default” access model i.e. access to other modules is allowed unless explicitly restricted. Is there a way to switch to a "deny-by-default” permission model? In this scenario, access to other modules would be forbidden by default unless specifically granted? I think this would be a useful feature.
The text was updated successfully, but these errors were encountered: