Skip to content

Secret placeholder - #91

Merged
jingkaihe merged 9 commits into
mainfrom
secret-placeholder
Mar 28, 2026
Merged

Secret placeholder#91
jingkaihe merged 9 commits into
mainfrom
secret-placeholder

Conversation

@jingkaihe

@jingkaihe jingkaihe commented Mar 28, 2026

Copy link
Copy Markdown
Owner

#89

--secret-placeholder cli flag based placeholder

./bin/matchlock run -it --rm --image ubuntu:24.04 \
  --allow-host '*' \
  --secret GH_TOKEN@github.com,api.github.com \
  --secret-placeholder GH_TOKEN=gho_sandbox_placeholder  \
   --

secret file based secret placeholder:

secrets.json

{
  "GH_TOKEN": {
    "value": "gho_xxxxxxxxx_therealone",
    "placeholder": "gho_sandbox_placeholder",
    "hosts": ["github.com", "api.github.com"]
  }
}
./bin/matchlock run --rm -it --image ubuntu:24.04 --allow-host '*' --secret-file secrets.json --

Signed-off-by: Jingkai He <jingkai@hey.com>
… secret hosts

Signed-off-by: Jingkai He <jingkai@hey.com>
Signed-off-by: Jingkai He <jingkai@hey.com>
Signed-off-by: Jingkai He <jingkai@hey.com>
Signed-off-by: Jingkai He <jingkai@hey.com>
Signed-off-by: Jingkai He <jingkai@hey.com>
Signed-off-by: Jingkai He <jingkai@hey.com>
@jingkaihe
jingkaihe merged commit f3f5bb8 into main Mar 28, 2026
6 checks passed
@jingkaihe
jingkaihe deleted the secret-placeholder branch March 28, 2026 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant