fix: secret name generation when secretId is not part of the secret name #394
No reviewers
Labels
No Label
bug
build
ci/cd
contributing
design
documentation
duplicate
enhancement
help wanted
invalid
meta
question
security
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: coop-cloud/abra#394
Loading…
Reference in New Issue
No description provided.
Delete Branch "p4u1/abra:fix-secret-name"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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?
@ -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)
This is where I tested the remote name is correct, when the secret id is not part of the secret name.
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.