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

Document allowed characters for KV keys #533

Open
jasonmccallister opened this issue Nov 10, 2022 · 1 comment
Open

Document allowed characters for KV keys #533

jasonmccallister opened this issue Nov 10, 2022 · 1 comment

Comments

@jasonmccallister
Copy link

When trying to store a KV item on a bucket, using a : throws an error that it is not a valid key. An example key that throws an error is config:key.

What is a valid key is not documented here:
https://github.com/nats-io/nats.docs/blob/master/nats-concepts/jetstream/key-value-store/readme.md

@ahirner
Copy link

ahirner commented Jan 5, 2024

FWIW, if clients don't enforce it (like nats-py), storing values with keys that contain e.g. & succeeds. Also, watching them with wildcards succeeds with nats cli.

This ADR mentions allowed chars: https://github.com/nats-io/nats-architecture-and-design/blob/main/adr/ADR-8.md

Is there anything in the storage layer, or a planned storage layer that disallows valid subjects as valid keys?

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

No branches or pull requests

2 participants