From f468bc744359d1305810544ce513b1ef3155b923 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Mon, 29 Sep 2025 10:33:04 +0200 Subject: [PATCH] fix: collect local name also --- pkg/secret/secret.go | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/pkg/secret/secret.go b/pkg/secret/secret.go index e1857ad9..6f5103e7 100644 --- a/pkg/secret/secret.go +++ b/pkg/secret/secret.go @@ -50,6 +50,11 @@ type Secret struct { // Will have this remote name: // test_example_com_test_pass_two_v2 RemoteName string + + // LocalName iis the name of the secret in the recipe config. This is also + // the name that you pass to `abra app secret insert` and is shown on `abra + // app secret list` + LocalName string } // GeneratePassword generates passwords. @@ -133,7 +138,12 @@ func ReadSecretsConfig(appEnvPath string, composeFiles []string, stackName strin lastIdx := strings.LastIndex(secretConfig.Name, "_") secretVersion := secretConfig.Name[lastIdx+1:] - value := Secret{Version: secretVersion, RemoteName: secretConfig.Name} + + value := Secret{ + Version: secretVersion, + RemoteName: secretConfig.Name, + LocalName: secretId, + } if len(value.RemoteName) > config.MAX_DOCKER_SECRET_LENGTH { return nil, errors.New(i18n.G("secret %s is > %d chars when combined with %s", secretId, config.MAX_DOCKER_SECRET_LENGTH, stackName))