Access
A service is public, restricted to members or set addresses, or private to its project, and each environment has its own access.
All pages
Each web service has one access level in each environment. The console shows it next to Access in Settings.
| Level | In the console | In the CLI |
|---|---|---|
| Public | Anyone | --reach public |
| Restricted | Project members only, or Opens from set IP addresses only | --members-only, access ips add |
| Private | Project 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.
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.
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:
ghaym cloud access set api --env staging --members-onlyA database has no Access setting. Only web services do.
A new level is a staged change. Nothing changes until you apply it, and it applies without a deploy.