fix: secret name generation when secretId is not part of the secret name #394

Merged
decentral1se merged 1 commits from p4u1/abra:fix-secret-name into main 2023-12-04 21:52:09 +00:00
Member

After working on the env var modifiers I was bit familiar with the secret generation code and after talking to @decentral1se I tried to fix the remaining secret generation issue.

This should fix the remaining bug in coop-cloud/organising#464

@moritz and @decentral1se can you check if this is the correct behaviour for secrets now?

After working on the env var modifiers I was bit familiar with the secret generation code and after talking to @decentral1se I tried to fix the remaining secret generation issue. This should fix the remaining bug in https://git.coopcloud.tech/coop-cloud/organising/issues/464 @moritz and @decentral1se can you check if this is the correct behaviour for secrets now?
p4u1 added 1 commit 2023-12-04 13:40:26 +00:00
p4u1 reviewed 2023-12-04 13:41:33 +00:00
@ -40,2 +26,2 @@
assert.Contains(t, secretsFromConfig, secretId)
}
// Secret name does not include the secret id
assert.Equal(t, "test_example_com_pass_three_v2", secretsFromConfig["test_pass_three"].RemoteName)
Author
Member

This is where I tested the remote name is correct, when the secret id is not part of the secret name.

This is where I tested the remote name is correct, when the secret id is not part of the secret name.
decentral1se reviewed 2023-12-04 17:37:45 +00:00
decentral1se left a comment
Owner

Wow, you're a hero @p4u1 😲

This is looking really solid. Tysm for working on it.

I had only had time for a quick review.

Hoping @moritz can also take a look ASAP.

Wow, you're a hero @p4u1 😲 This is looking really solid. Tysm for working on it. I had only had time for a quick review. Hoping @moritz can also take a look ASAP.
Owner

image

![image](/attachments/d0d19847-1720-4e55-853e-68535b24fda7)
decentral1se merged commit 99e3ed416f into main 2023-12-04 21:52:09 +00:00
Sign in to join this conversation.
No description provided.