Key Concepts
Hierarchical Structure
Multiple Formats
Version Tracking
Atomic Operations
Required Permissions
Keys vs Folders
How to Navigate the KV Store
Select Consul Instance
Browse Folders
Search Keys
Go Back
How to Create a Key
Navigate to Target Folder
Click New Key
Select Key Type
Enter Key Name
Select Format (for Keys)
- Plain Text: Simple string values
- JSON: Structured data with validation
- YAML: Configuration files
Enter Value
Create
How to View and Edit a Key
Click on the Key
Review Key Information
Edit Value
Save Changes
How to Copy a Value
- Open the key detail page
- Click the Copy button in the toolbar
- The entire value is copied to your clipboard
How to Hide/Show Values
For sensitive data:- Click the eye icon to hide the value
- The editor is replaced with a “Value is hidden” placeholder
- Click Show Value to reveal it again
How to Delete a Key
Find the Key
Click Delete
Confirm
How to Delete a Folder
Find the Folder
Click Delete
Confirm
Path Conventions
Follow these conventions for organizing keys:Common Use Cases
Application Configuration
Store database connections, API endpoints, and feature flags:Service Discovery Configuration
Store service metadata that applications can read:Feature Flags
Simple key-value pairs for feature toggles:Troubleshooting
Key not appearing after creation
Key not appearing after creation
- Click the refresh button to reload the key list
- Verify you’re in the correct folder path
- Check that the key was created successfully (look for error messages)
Cannot edit key
Cannot edit key
- You need write permission for Consul KV
- The Consul instance may be in read-only mode
- Check network connectivity to Consul
JSON validation error
JSON validation error
- Check for missing commas between key-value pairs
- Ensure all strings are wrapped in double quotes
- Verify brackets and braces are properly matched
- Use an external JSON validator if needed
Cannot delete folder
Cannot delete folder
- You need delete permission for Consul KV
- Ensure the folder path is correct
- Try deleting individual keys first if bulk delete fails
Changes not persisting
Changes not persisting
- Click Save Changes after editing
- Check for validation errors (invalid JSON badge)
- Verify you have write permissions
- Refresh and check if another process is overwriting
FAQ
What's the maximum value size?
What's the maximum value size?
Can I store binary data?
Can I store binary data?
Are changes immediately visible to applications?
Are changes immediately visible to applications?
What are flags used for?
What are flags used for?
How do I back up KV data?
How do I back up KV data?
consul kv export > backup.json. You can also use the HTTP API for programmatic backups. Consider regular snapshots for disaster recovery.Can multiple users edit the same key?
Can multiple users edit the same key?
What's the difference between create and modify index?
What's the difference between create and modify index?
Best Practices
Organize by Environment
Keep environment-specific configurations separate:Use Meaningful Names
Name keys descriptively:Prefer JSON for Structured Data
JSON provides validation and is widely supported:Document Key Purpose
Use consistent naming that indicates purpose:Avoid Sensitive Data
Consul KV is not designed for secrets. Use HashiCorp Vault for:- Passwords
- API keys
- Certificates
- Any sensitive credentials