@mutmutco/cli 3.39.0 → 3.40.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.cjs +3 -2
- package/package.json +1 -1
package/dist/main.cjs
CHANGED
|
@@ -6964,10 +6964,11 @@ async function secretsImportRailsCredentials(deps, opts) {
|
|
|
6964
6964
|
async function secretsRemove(deps, key, opts) {
|
|
6965
6965
|
if (!isValidSecretKey(key)) return deps.err(`invalid secret key ${JSON.stringify(key)}`);
|
|
6966
6966
|
const repo = await targetRepo(deps, opts);
|
|
6967
|
+
const slug = opts.slug?.toLowerCase();
|
|
6967
6968
|
const res = await deps.fetch(`${deps.apiUrl}/secrets/rm`, {
|
|
6968
6969
|
method: "POST",
|
|
6969
6970
|
headers: await deps.headers({ "content-type": "application/json" }),
|
|
6970
|
-
body: JSON.stringify({ repo, key }),
|
|
6971
|
+
body: JSON.stringify({ repo, key, ...slug ? { slug } : {} }),
|
|
6971
6972
|
signal: AbortSignal.timeout(TIMEOUT_MS)
|
|
6972
6973
|
});
|
|
6973
6974
|
if (!res.ok) {
|
|
@@ -16667,7 +16668,7 @@ function registerSecretsCommands(program3) {
|
|
|
16667
16668
|
);
|
|
16668
16669
|
if (!ok) process.exitCode = 1;
|
|
16669
16670
|
}));
|
|
16670
|
-
secrets.command("rm <key>").description("remove a secret from your own full project vault; org-infra requires master or an exact grant").option("--repo <owner/repo>", "target repo (defaults to the current repo)").action((key, o) => withSecrets((d) => secretsRemove(d, key, o)));
|
|
16671
|
+
secrets.command("rm <key>").description("remove a secret from your own full project vault; org-infra requires master or an exact grant. --slug _org removes an org-infra <provider>/<KEY> value (#3315)").option("--repo <owner/repo>", "target repo (defaults to the current repo)").option("--slug <slug>", "org-infra namespace (e.g. _org) for the value removal \u2014 master or an exact grant (#3315)").action((key, o) => withSecrets((d) => secretsRemove(d, key, o)));
|
|
16671
16672
|
secrets.command("use <key> [command...]").description("consume a secret KEYLESS: own-project full tree or an exactly granted org-infra key; injects into command env and never prints it").option("--repo <owner/repo>", "target repo (defaults to the current repo)").option("--slug <slug>", "org-infra namespace (e.g. _org) for a granted org secret").option("--name <ENVVAR>", "env var name to inject under (default: the key leaf, UPPER_SNAKE)").action((key, command, o) => withSecrets(async (d) => {
|
|
16672
16673
|
const ok = await secretsUse(d, key, { ...o, command });
|
|
16673
16674
|
if (ok === false) process.exitCode = 1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mutmutco/cli",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.40.0",
|
|
4
4
|
"description": "MMI Future CLI — the org dev toolbox (board, registry, keyless secrets, release train, bootstrap, doctor) and the cross-IDE engine the plugin's session-start hook drives.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "UNLICENSED",
|