Authentication mechanism for all Dgraph versions

I’m considering using Dgraph in various environments: local development with docker, Dgraph Slash and Dgraph Cloud.

I want to restrict access only to authorized sources.

Is there a common authentication mechanism valid for all environments? I have seen that in Dgraph Slash I can create API keys, can I use API keys when I install Dgraph by myself or when I will use Dgraph Cloud?

Thanks!

There’s a level of auth only available to the cloud (what you see via API Keys, would be soon renamed to Auth Tokens or similar). Dgraph supports more complex auth rules — with GraphQL support object level auth, while the core supporting predicate level auth via ACLs. ACLs are enterprise feature though (available in all cloud offerings).