clockworklabs / clockworklabs/SpacetimeDB

`spacetime sql` says credentials are incorrect when `-a` is passed

Open
#1,522 3 comments 0 reactions 1 assignee View on GitHub

@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 -a correct results in creating a new identity for the user on-the-fly
    • So -a functions the same as manually creating a new (non-privileged) identity and then using that identity to do the thing
  • An integration test is added so that this can't be regressed

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.