No generation for secrets which have TOKEN in the name (no PASSWORD/KEY) #68

Closed
opened 2020-12-31 15:50:11 +00:00 by decentral1se · 2 comments
Owner

I've now got a secret that has no KEY but TOKEN and it specifies a length=x comment. The thought occurred to me then we can just treat everything with the same PASSWORD logic, defaulting to pwqgen, but when we see length=x, we drop back to pwgen and use the length specifier.

This would simplify our logic which trys to match against a string with PASSWORD or KEY in it and then choose pwgen or pwqgen. This feels like a less brittle method.

I've now got a secret that has no `KEY` but `TOKEN` and it specifies a `length=x` comment. The thought occurred to me then we can just treat everything with the same `PASSWORD` logic, defaulting to `pwqgen`, but when we see `length=x`, we drop back to `pwgen` and use the length specifier. This would simplify our logic which trys to match against a string with `PASSWORD` or `KEY` in it and then choose `pwgen` or `pwqgen`. This feels like a less brittle method.
decentral1se added the
bug
label 2020-12-31 15:50:11 +00:00
Owner

Yep now that we have the SECRET_ convention I don't think we need to look for PASSWORD or KEY at all, let's do this.

Yep now that we have the `SECRET_` convention I don't think we need to look for `PASSWORD` or `KEY` at all, let's do this.
decentral1se self-assigned this 2021-01-01 16:33:26 +00:00
Author
Owner

Gonna squash this next 🏃

Gonna squash this next 🏃
This repo is archived. You cannot comment on issues.
No Milestone
No Assignees
2 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: coop-cloud/abra#68
No description provided.