Is it possible to restrict bindings? Say I want an auth service worker that I want to make sure is the only worker that can access the auth R1 database. Is there any way to prevent another worker from accessing said database eg from being bound? I know we can restrict a worker to be only able to be communicated to by other workers.
no, but why? You can only make bindings in the dash/via wrangler, and if someone has your dash login/credentials they could just remove that restriction
The file exists in the repo no? So it means having tighter security controls on the auth service DB for instance wouldn't be of value because say an open source component that uses that service could be compromised and access the auth DB.
Bindings don't just reduce boilerplate. They are a core design feature of the Workers platform which simultaneously improve developer experience and application security in several ways. Usually these two goals are in opposition to each other, but bindings elegantly solve for both at the same time