Skip to content

Commit

Permalink
Update templates with latest build
Browse files Browse the repository at this point in the history
Signed-off-by: Radu Matei <[email protected]>
  • Loading branch information
radu-matei committed Apr 6, 2023
1 parent b9e7dd9 commit 732edf5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ route = "/internal/kv-explorer/..."

You can now access the explorer in your browser at the route `/internal/kv-explorer`.

### Credentials

The explorer will use the default store to persist the credentials to access the UI and the API. If no values are set, the first invocation will set a randomly generated pair of username and password under the `credentials` key, with the value following the `user:password` format. On the first run, the values will be printed in the logs, and they can be used to log in and change them (creating a new `credentials` value will override the existing value).

### Known limitations

- currently, the explorer can only be used with Spin's default key/value store. When this will be configurable, this component will support working with custom stores as well.
Expand Down
2 changes: 1 addition & 1 deletion templates/kv-explorer/content/spin.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ trigger = { type = "http", base = "/" }
version = "0.1.0"

[[component]]
source = { url = "https://github.com/radu-matei/spin-kv-explorer/releases/download/v0.6.0/spin-kv-explorer.wasm", digest = "sha256:38110bc277a393cdfb1a885a0fd56923d47314b2086399d1e3bbcb6daa1f04ad" }
source = { url = "https://github.com/radu-matei/spin-kv-explorer/releases/download/v0.7.0/spin-kv-explorer.wasm", digest = "sha256:4d4985cb076161509641a7e6ad782202ae2d934f3c4ad8dfa1e37d220e9ed128 " }
id = "kv-explorer"
# add or remove stores you want to explore here
key_value_stores = ["default"]
Expand Down
2 changes: 1 addition & 1 deletion templates/kv-explorer/metadata/snippets/component.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[[component]]
source = { url = "https://github.com/radu-matei/spin-kv-explorer/releases/download/v0.6.0/spin-kv-explorer.wasm", digest = "sha256:38110bc277a393cdfb1a885a0fd56923d47314b2086399d1e3bbcb6daa1f04ad" }
source = { url = "https://github.com/radu-matei/spin-kv-explorer/releases/download/v0.7.0/spin-kv-explorer.wasm", digest = "sha256:4d4985cb076161509641a7e6ad782202ae2d934f3c4ad8dfa1e37d220e9ed128 " }
id = "kv-explorer"
# add or remove stores you want to explore here
key_value_stores = ["default"]
Expand Down

0 comments on commit 732edf5

Please sign in to comment.