You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 23, 2026. It is now read-only.
This repository was archived by the owner on Oct 23, 2026. It is now read-only.
Feature: Add keyway docker command for Docker secrets injection
Summary
Add a keyway docker command that injects vault secrets into Docker and Docker Compose commands, similar to how keyway run works for regular commands.
Use Cases
# Docker run - secrets injected as -e flags
keyway docker run --rm alpine env
keyway docker --env production run -p 8080:8080 myapp:latest
# Docker compose run - secrets injected as -e flags
keyway docker compose run --rm test env
# Docker compose up - secrets injected via --env-file
keyway docker compose up -d
Behavior
| Command | Injection Method ||----------------------------|--------------------------------------|| docker run | -e KEY=VALUE flags before image name || docker compose run | -e KEY=VALUE flags after run || docker compose up/down/etc | Temporary --env-file |
Features
- User-provided -e flags take precedence over vault secrets
- Interactive environment selection when --env flag not provided
- Same authentication flow as other keyway commands
Affected Files
- internal/cmd/docker.go (new)
- internal/cmd/docker_test.go (new)
- internal/cmd/root.go (register command)
Activity
feat: add keyway docker command for Docker secrets injection