Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: KVStore.keys #919

Closed
dios-david opened this issue Aug 27, 2024 · 3 comments · Fixed by #1004
Closed

Feature Request: KVStore.keys #919

dios-david opened this issue Aug 27, 2024 · 3 comments · Fixed by #1004

Comments

@dios-david
Copy link

The HTTP API of KV Store has a /keys endpoint to list the keys of all the items within a kv store.

Would it be possible to support this in the JS compute SDK as well?

@guybedford
Copy link
Member

We are working on adding this. Implementing this first depends on #922.

@alberthastings
Copy link

In the meantime, and until it is included in the JS Compute SDK, would it be correct to implement it as follows?:
I create the backend https://api.fastly.com.
I create a secret store and store a FASTLY_API_TOKEN in it.
Every time my application receives a request, I retrieve the FASTLY_API_TOKEN from the secret store, and call "/resources/stores/kv/{storeId}/keys".

@computermouth
Copy link

@alberthastings Yes that's a reasonable route. Your paths forward are:

  1. use the API directly (as you outlined with the API token in a Secret Store)
  2. wait for the JS SDK support
  3. use the implementation in the Rust SDK

@guybedford guybedford mentioned this issue Oct 25, 2024
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants