Skip to content

Commit 6efbc28

Browse files
author
Maxim Mityutko
committed
rename util
1 parent fc5193e commit 6efbc28

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ FROM ghcr.io/openclaw/openclaw:${OPENCLAW_IMAGE_VERSION}
44
ARG RBW_VERSION="1.15.0"
55
ARG KUBECTL_VERSION="stable"
66

7-
COPY scripts/rbw_master_password_from_env.py /tmp/rbw_master_password_from_env.py
7+
COPY utils/pinentry.py /tmp/pinentry.py
88

99
USER root
1010
# ---------------------------------------------------------------------------------------------------------------------
@@ -29,7 +29,7 @@ RUN curl -fsSL \
2929
rbw --version
3030

3131
RUN echo "Cheaky 'pinentry' replacement, make sure that BITWARDEN_MASTER_PASSWORD environment variable is set during execution..."
32-
RUN install -m 0755 /tmp/rbw_master_password_from_env.py /usr/local/bin/rbw_master_password_from_env.py
32+
RUN install -m 0755 /tmp/pinentry.py /usr/local/bin/pinentry.py
3333

3434
# ---------------------------------------------------------------------------------------------------------------------
3535

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ docker build --build-arg OPENCLAW_IMAGE_VERSION=2026.5.26 -t openclaw-docker:loc
3333
| `rg` | APT package (`ripgrep`) | Fast recursive text and file search for code and logs. |
3434
| `rbw` | Release binary | Unofficial Bitwarden CLI for retrieving secrets from Vaultwarden. |
3535
| `rbw-agent` | Release binary | Background agent used by `rbw` to unlock and cache vault access. |
36-
| `rbw_master_password_from_env.py` | Local helper script | Pinentry-compatible helper that reads `BITWARDEN_MASTER_PASSWORD`. |
36+
| `pinentry.py` | Local helper script | Pinentry-compatible helper that reads `BITWARDEN_MASTER_PASSWORD`. |
3737
| `karakeep` | Global npm package | Karakeep CLI for interacting with Karakeep services. |
3838
| `summarize` | Global npm package | Summarization CLI used by skills and media workflows. |
3939
| `ffmpeg` | APT package | Audio and video processing dependency for media workflows. |
@@ -101,14 +101,14 @@ without relying on a browser or desktop integration.
101101
`rbw-agent` normally asks `pinentry` to prompt for the master password. In this
102102
container, interactive pinentry prompts are awkward and often unavailable, so
103103
the pinentry command should be replaced with
104-
`/usr/local/bin/rbw_master_password_from_env.py`. The script emulates the small
104+
`/usr/local/bin/pinentry.py`. The script emulates the small
105105
pinentry protocol surface that `rbw-agent` needs and returns the master password
106106
from the `BITWARDEN_MASTER_PASSWORD` environment variable instead.
107107

108108
```sh
109109
rbw config set email john@doe.com
110110
rbw config set base_url https://vault.doe.com
111-
rbw config set pinentry /usr/local/bin/rbw_master_password_from_env.py
111+
rbw config set pinentry /usr/local/bin/pinentry.py
112112
rbw login
113113
rbw unlock
114114
```
@@ -127,7 +127,7 @@ instead:
127127
"notifications_url": null,
128128
"lock_timeout": 3600,
129129
"sync_interval": 300,
130-
"pinentry": "/usr/local/bin/rbw_master_password_from_env.py",
130+
"pinentry": "/usr/local/bin/pinentry.py",
131131
"client_cert_path": null
132132
}
133133
```
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
This script answers the small command subset rbw needs and returns the value
66
from BITWARDEN_MASTER_PASSWORD instead of prompting interactively.
77
8-
Usage:
9-
rbw config set pinentry /path/to/rbw_master_password_from_env.py
8+
Usage:
9+
rbw config set pinentry /path/to/pinentry.py
1010
"""
1111

1212
import os

0 commit comments

Comments
 (0)