Project Access Control

Overview

There are different options to share projects with others:

  • Public: Anyone with the link can access it.
  • Password-protected: Anyone with the link and password can access it.
  • Private: Only invited people can access it.

By default, dbdocs projects created are accessible by public, which means anyone can view it via the shareable link.

Password protection

Set Password

Your dbdocs project is set to be public by default. However, you can use the "Share" button on the project page to enable password protection for a project, or you can use the following command with dbdocs CLI:

$ dbdocs password --set <password> --project <project name>
āœ” Password is set for <project name>

Or

$ dbdocs password --project <project name>
? Enter password: [hidden]
? Re-enter password: [hidden]
āœ” Password is set for <project name>

Or you can build your project with password by using build command with --password

$ dbdocs build <path to your dbml file>/database.dbml --password <password>
Pushing new database schema to project your_project...
āœ” Password is set for 'Ecommerce'
Done. Visit: https://dbdocs.io/khanh-tran-quoc/Ecommerce

Now your project is protected, only the one who have your password can access your project.

Remove Password

Remove password from your project to make it public

$ dbdocs password --remove --project <project name>
āš  Password is removed from 'Ecommerce'

Private mode

šŸ“ This feature is available in our Pro plan

You may control who can view your dbdocs project by using private mode and inviting other users to your project.

To do this, you first set the project to Private mode, meaning only invited people can view your project.

img

Then you invite read-only user by granting access to them using their email addresses.

img

It's that simple! šŸ™Œ Now your project is protected, only the ones who are invited can access your project.