NPM and JSVM, custom basic-auth plugin more details?

I would suggest:

  1. Changing your auth mechanism to “Auth Token” and set the location of the token to use the Header x-internal-authorization
  2. In your plugin, hash the rawAuthorization string
  3. Use the hash as the key for the session (or, if you want to go a step further, use orgID+hash(rawAuthorization))
  4. Add the hash as an x-internal-authorization header

Reasoning:

  1. Open API’s do not process rate limits or quotas
  2. Open APIs, since there is no token, do not collect analytics per user
  3. It means you can modify the session from the dashboard (if you use the orgID as a prefix)

I would also strongly suggest turning off master keys, it basically means that the inbound session has access to ALL APIs if the access list is empty. This might be ok for a PoC, but it’s not a safe mode.

M.