How can I grant read and write access to a user to securely access the overlord API(s)?

A community member has some applications that need to securely access the overlord API(s). Specifically, tasks need to be submitted via the /druid/indexer/v1/task endpoint. The solution is to grant both DATASOURCE READ and DATASOURCE WRITE permissions to the desired datasources. Read about defining permissions here, brush up on DATASOURCE WRITE security here, and some context here.