|
|
|
|
|
by jmvoodoo
710 days ago
|
|
One step we have taken is to build an auth system that requires you as the developer to explicitly specify the security of an endpoint using a decorator. If no decorator is provided, then the endpoint is completely locked down even to admins (effectively disabled). If an endpoint is decorated with something that is considered dangerous (i.e. public access), that triggers additional review steps. In addition, the authentication forbids certain combinations of decorators and access patterns. It's not perfect, but it has saved us a few times from securing endpoints incorrectly in code. |
|