SpacetimeDB icon indicating copy to clipboard operation
SpacetimeDB copied to clipboard

Why is a login needed for local deployment?

Open hardliner66 opened this issue 10 months ago • 2 comments

I get needing a login for the testnet, but needing to login for publishing to a local server doesn't seem necessary.

hardliner66 avatar Mar 04 '25 12:03 hardliner66

I found an option to authenticate locally: spacetime login --server-issued-login local

I think this should be documented in the getting started guide.

hardliner66 avatar Mar 05 '25 10:03 hardliner66

We require a login because a local server is still essentially a production server - if you expose the ports, users from anywhere can access it, so the server needs to be able to distinguish the users.

--server-issued-login is the back door, but we don't like encouraging people to use it because it has more sharp edges. A regular spacetime login will work for any SpacetimeDB server, but a server-issued login will only work for that server.

bfops avatar Apr 02 '25 17:04 bfops