ICU-14484: redis connect helper (#6001)

* add redis connect support
* Setup redis in docker for e2e testing
* Update docs and changelog
* Commenting out e2e tests for now, will revisit in a separate task
This commit is contained in:
Justin Nguyen authored and GitHub committed 2025-09-19 16:20:11 -05:00
1 parent f8a5894e29
commit 4548028efe
10 files changed
+386

No files matched your search

@@ -45,6 +45,7 @@ Subcommands:
mysql Authorize a session against a target and invoke a MySQL client to connect
postgres Authorize a session against a target and invoke a Postgres client to connect
rdp Authorize a session against a target and invoke an RDP client to connect
redis Authorize a session against a target and invoke a redis client to connect
ssh Authorize a session against a target and invoke an SSH client to connect
```
@@ -59,6 +60,7 @@ of the subcommand in the sidebar or one of the links below:
- [mysql](/boundary/docs/commands/connect/mysql)
- [postgres](/boundary/docs/commands/connect/postgres)
- [rdp](/boundary/docs/commands/connect/rdp)
- [redis] (/boundary/docs/commands/connect/redis)
- [ssh](/boundary/docs/commands/connect/ssh)
### Command options
@@ -0,0 +1,61 @@
---
layout: docs
page_title: connect redis - Command
description: >-
The "connect redis" command performs a target authorization or consumes an existing authorization token, and then launches a proxied redis (redis-cli) connection.
---
# connect redis
Command: `boundary connect redis`
The `connect redis` command authorizes a session against a target and invokes a Redis client for the connection.
The command fills in the local address and port.
@include 'cmd-connect-env-vars.mdx'
## Examples
The following example shows how to connect to a target with the ID `ttcp_eTcZMueUYv` using a Redis helper:
```shell-session
$ boundary connect redis -target-id=ttcp_eTcZMueUYv \
-username=superuser
```
When prompted, you must enter the password for the user, "superuser":
<CodeBlockConfig hideClipboard>
```plaintext
Please input password:
127.0.0.1:60835>
```
</CodeBlockConfig>
## Usage
<CodeBlockConfig hideClipboard>
```shell-session
$ boundary connect redis [options] [args]
```
</CodeBlockConfig>
@include 'cmd-connect-command-options.mdx'
### Redis options:
- `-style` `(string: "")` - How the CLI attempts to invoke a Redis client.
This value also sets a suitable default for `-exec`, if you did not specify a value.
The default and currently-understood value is `redis-cli`.
You can also specify how the CLI attempts to invoke a Redis client using the **BOUNDARY_CONNECT_REDIS_STYLE** environment variable.
- `-username` `(string: "")` - The username you want to pass through to the client.
This value may be overridden by credentials sourced from a credential store.
You can also specify a username using the **BOUNDARY_CONNECT_USERNAME** environment variable.
@include 'cmd-option-note.mdx'