36 Commits (ea01d687b546108b6baf0bc27d16e085739b3b6d)

Author SHA1 Message Date
Jessie Murray ea01d687b5
Apply ACL rules to WebSocket commands
ACLs were not considered when processing commands coming over WebSocket
connections. WS commands that are disabled with ACLs are now rejected
with a custom message for JSON and raw WS clients, the two supported
formats for this protocol. For JSON an equivalent HTTP status code is
included in the response, although this is only an indication of how
Webdis would have responded if it came from a regular HTTP request.

Tests are added to validate that DEBUG commands are rejected by Webdis
without even making it to Redis, for both JSON and raw WS clients.

Add DEBUG OBJECT demo to websocket.html: DEBUG is disabled with ACLs
by default in webdis.json. A DEBUG button is added to the WebSocket
HTML demo to show what kind of response is produced when WebSocket
clients attempt to send such a command.

The error responses are documented in the README in the ACL section.

Fixes #240.
12 months ago
Nicolas Favre-Felix b59d866e06
Also convert tabs to spaces in README.md 1 year ago
Nicolas Favre-Felix 3ea9c46444
Update image versions in README after release
0.1.21 -> 0.1.22
1 year ago
Nicolas Favre-Felix 496ac1aa79
Use permalink for Hiredis docs about keep-alive 1 year ago
Nicolas Favre-Felix 12e5f0363f
Add keep_alive_sec to both config files, document in README 1 year ago
Nicolas Favre-Felix 0c4547fe5e
Update docs about Docker and Webdis
* Add section in README about Docker images and the embedded Redis
* Minor title and link changes in docs/ for Docker articles
1 year ago
Nicolas Favre-Felix f4efbfd334
Update image versions in README after release
0.1.20 -> 0.1.21
2 years ago
Nicolas Favre-Felix ef8fcc5bab
Update docker images in README after release 0.1.20 was published 3 years ago
Nicolas Favre-Felix 2758fc0337
Fix heading typo in README 3 years ago
Nicolas Favre-Felix b8a43f03dc
Move docs from GitHub Discussions to the repo 3 years ago
Nicolas Favre-Felix 908c383838
Update docker images in README, link to new docs 3 years ago
Nicolas Favre-Felix bb98f6113c
Add link to tutorial on Redis & Webdis in Docker Compose with SSL 3 years ago
Nicolas Favre-Felix b5841037c8
Update docker images referenced in the README to the latest version (0.1.18) 3 years ago
Jessie Murray 863d003531
Review comments 3 years ago
Jessie Murray 8e9dcda928
Document SSL configuration and troubleshooting 3 years ago
Nicolas Favre-Felix 73fb3b68ff
Update docker images in README, add ECR trust details
1. Update docker images referenced in the README to latest version
 2. Add paragraph + tutorial about content trust and ECR
3 years ago
Nicolas Favre-Felix 9bbe0d3389
Update docker images referenced in the README to the latest version (0.1.17) 3 years ago
Nicolas Favre-Felix b1b300f508
README: document WebSocket demo, add links, minor cleanup 3 years ago
Nicolas Favre-Felix 6163d3e342
Update docker images referenced in the README to the latest version 3 years ago
Nicolas Favre-Felix d254a72ae4
Update outdated docker image versions in README 3 years ago
Nicolas Favre-Felix 1e4c6f8b96
Post-release README update 3 years ago
Nicolas Favre-Felix 3c7431a93d
Update ECR links after getting approved for a named account 4 years ago
Nicolas Favre-Felix c8dd4bc1a6
Re-sign Docker image 4 years ago
Nicolas Favre-Felix 60c224e667
Post-release version bump and README update 4 years ago
Nicolas Favre-Felix 80cf4d191d
Disable CircleCI 4 years ago
Jessie Murray b3eded6a1c
Add build (+ test) workflow for GitHub Actions (#191)
Performs the same tasks as on CircleCI and adds badge to README.md.
No change made to the CircleCI config.
4 years ago
Jessie Murray 53f483fb6a
Make fsync frequency configurable for log file (#187)
Webdis used to call fsync after every single log message, which had a
significant negative impact on performance. This change introduces 3
config options for fsync: no explicit fsync (the new default), a periodic
fsync called every N milliseconds, or the old behavior.

The new config key is also documented and validates its inputs.
4 years ago
Nicolas Favre-Felix c6d5d20de7
Post-release version bump and README update 4 years ago
Nicolas Favre-Felix 875ca6fb74
Add Redis auth section in README 4 years ago
Jessie Murray 02d60dc548 Implement Redis v6 auth (fixes #182)
* Change redis_auth in struct conf to handle old and new auth
* Update cfg.c to understand an array of two strings for redis_auth
* Update pool.c to send both username and password
4 years ago
Nicolas Favre-Felix 7fdfef0d8d
Change `docker run` command to expose port 7379 on loopback interface only 4 years ago
Nicolas Favre-Felix bcf2168b88
Add Docker Content Trust example 4 years ago
Nicolas Favre-Felix 8f33c4b298
Publish Docker Content Trust public key 4 years ago
Nicolas Favre-Felix 09f0ccc355
README: Add AWS ECR links, clean up Markdown
* Add links to new images on AWS ECR
* Clean up Markdown:
  * Change all <pre>...</pre> to ``` blocks
  * Add syntax info on code blocks
  * Add `$` prefix in front of all commands that didn't have it
  * Heading tweak
4 years ago
Nicolas Favre-Felix aafd53da0b
README fixes
* Make sure all external links use HTTPS
* Add missing dots in the list of supported formats/content-types
* Remove extra spaces
4 years ago
Nicolas Favre-Felix 42c11451b8
Use more common .md suffix for README 4 years ago