Secret Character Modifier #614

Open
opened 2024-05-01 11:28:47 +00:00 by moritz · 0 comments
Member

Following coop-cloud/organising#535 and coop-cloud/abra#391 abra has the modifier length=x for secrets to determine how long a secret should be and generates secrets according to this length.
Some apps require specific character sets for secrets:
coop-cloud/organising#510
coop-cloud/outline#12

I would propose further modifiers charset and character, which can be used to generate secrets:

SECRET_KEY_VERSION=v1  # length=64, charset=hex
SECRET_KEY_VERSION=v1  # length=64, charset=base64
SECRET_KEY_VERSION=v1  # length=64, charset=alphanumeric
SECRET_KEY_VERSION=v1  # length=64, character=abcdefghijklmnopqrstuvwxyz0123456789
Following https://git.coopcloud.tech/coop-cloud/organising/issues/535 and https://git.coopcloud.tech/coop-cloud/abra/pulls/391 `abra` has the modifier `length=x` for secrets to determine how long a secret should be and generates secrets according to this length. Some apps require specific character sets for secrets: https://git.coopcloud.tech/coop-cloud/organising/issues/510 https://git.coopcloud.tech/coop-cloud/outline/issues/12 I would propose further modifiers `charset` and `character`, which can be used to generate secrets: ``` SECRET_KEY_VERSION=v1 # length=64, charset=hex SECRET_KEY_VERSION=v1 # length=64, charset=base64 SECRET_KEY_VERSION=v1 # length=64, charset=alphanumeric SECRET_KEY_VERSION=v1 # length=64, character=abcdefghijklmnopqrstuvwxyz0123456789 ```
moritz added the
enhancement
label 2024-05-01 11:28:47 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
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: toolshed/organising#614
No description provided.