Access

A service is public, restricted to members or set addresses, or private to its project, and each environment has its own access.

Three levels

Each web service has one access level in each environment. The console shows it next to Access in Settings.

LevelIn the consoleIn the CLI
PublicAnyone--reach public
RestrictedProject members only, or Opens from set IP addresses only--members-only, access ips add
PrivateProject services only--reach private

A restricted service asks each visitor to sign in with Ghaym first, or opens only from the addresses on its list, up to 50 of them. A private service has no public address: only services in the same project and environment reach it.

To change it, follow Make a service private or Restrict who can open a service.

Addresses

With --reach custom-domain, the service answers only at your custom domains, and its ghaym.app address closes.

Every web service also has an internal address: its name and port, such as api:3000. The other services in the project use it. A private service has only this one.

Environments

A new environment starts with production's access, copied once when you create it. After that each environment keeps its own, and a change in one never reaches another. To change staging's access with the CLI:

Terminal
ghaym cloud access set api --env staging --members-only
Note

A database has no Access setting. Only web services do.

Changes wait

A new level is a staged change. Nothing changes until you apply it, and it applies without a deploy.