clockworklabs / clockworklabs/SpacetimeDB
`spacetime sql` says credentials are incorrect when `-a` is passed
Open
@lcodes is already working on this.
Since Jul 16, 2024.
- Dominant language
- Rust
- Stars
- 25.2k
- Forks
- 1.1k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 46
Description
We tried to run a spacetime sql query as a non-admin user and attempted to use the -a flag (which allows for passing an anonymous identity to SpacetimeDB). When we did this, we got a 401: Unauthorized even when using spacetime sql on a public table. This should not be the case and you should be able to use spacetime sql on public tables and you should also be able to use spacetime call on reducers even with an anonymous identity.
Definition of Done
- Passing
-acorrect results in creating a new identity for the user on-the-fly- So
-afunctions the same as manually creating a new (non-privileged) identity and then using that identity to do the thing
- So
- An integration test is added so that this can't be regressed
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.