Commit Graph

39 Commits

Author SHA1 Message Date
decentral1se 8dbde3d158 fix: wrap string (i18n) 2026-02-19 00:07:18 +01:00
Apfelwurm 8f42e36302 feat: bytes/base64 secret generation 2026-02-18 20:41:45 +01:00
3wordchant fc5855ff28 feat: Add hexadecimal secret generation
Closes #695
2025-10-18 15:03:02 -04:00
decentral1se f468bc7443 fix: collect local name also 2025-09-29 10:33:26 +02:00
3wordchant 6d634ea4e2 WIP: Initial stab at secrets/configs/images 2025-09-08 22:06:27 -04:00
p4u1 61849a358c feat(app): Adds abra app move command 2025-09-01 06:50:11 +02:00
decentral1se 4e205cf13e feat: translation support
See toolshed/abra#483
2025-08-23 17:55:56 +02:00
decentral1se df89e8143a chore: clean cruft / formatting / add whitespace 2025-08-19 07:30:55 +00:00
decentral1se b4ddd3e77c feat: handle generate=false env var mod
See toolshed/organising#461
2025-08-19 07:30:55 +00:00
Apfelwurm d0f982456e add charset modifier to secret generation (#521)
since we need special chars in passwords for a recipe we are working on, i have added the option to specify a charset in the same way as the length can be setted.
i did not change anything in the behaviour, so if length is not specified, the charset gets ignored whether it is there or not.

you can specify the following:
`charset=default` - Results in passgen.AlphabetDefault being used
`charset=special` - Results in passgen.AlphabetSpecial being used
`charset=safespecial` - Results in `!@#%^&*_-+=` being used (so it is AlphabetSpecial without the dollar sign)
`charset=default,special` or `charset=special,default` - Results in passgen.AlphabetDefault + passgen.AlphabetSpecial being used
`charset=default,safespecial` or `charset=safespecial,default` - Results in passgen.AlphabetDefault + `!@#%^&*_-+=` being used ((so it is AlphabetSpecial without the dollar sign)

PR for the docs: toolshed/docs.coopcloud.tech#271

Co-authored-by: p4u1 <p4u1@noreply.git.coopcloud.tech>
Reviewed-on: toolshed/abra#521
Reviewed-by: p4u1 <p4u1@noreply.git.coopcloud.tech>
Co-authored-by: Apfelwurm <Alexander@volzit.de>
Co-committed-by: Apfelwurm <Alexander@volzit.de>
2025-03-21 10:29:21 +00:00
decentral1se de006782b6 refactor: tablewriter -> lipgloss
Also the jsontable impl. is dropped also. Output is unchanged.
2024-07-16 16:22:47 +02:00
p4u1 d7a870b887 feat: remote recipes 2024-07-10 12:06:44 +02:00
decentral1se f003430a8d fix: use recipe name, not app name 2024-07-08 14:54:15 +02:00
p4u1 f14d49cc64 refactor(recipe): rename Recipe2 -> Recipe 2024-07-08 13:19:40 +02:00
p4u1 99da8d4e57 refactor(recipe): move GetComposeFiles to new struct 2024-07-08 12:06:58 +02:00
decentral1se ef108d63e1 refactor: use central logger 2024-07-08 00:01:28 +02:00
p4u1 0076b31253 new package envfile and move GetComposeFiles to recipe package 2024-07-06 16:37:16 +02:00
p4u1 f18c642226 refactor: move app files from config to app package 2024-07-06 16:37:16 +02:00
decentral1se a4de446f58 test: more verbose failure msg, use contains [ci skip] 2024-04-06 23:48:22 +02:00
rix d21c35965d fix: add warning for long secret names (!359)
A start of a fix for coop-cloud/organising#463
Putting some code out to start a discussion.  I've added a linting rule for recipes to establish a general principal but I want to put some validation into cli/app/new.go as that's the point we have both the recipe and the domain and can say for sure whether or not the secret names lengths cause a problem but that will have to wait for a bit.  Let me know if I've missed the mark somewhere

Reviewed-on: coop-cloud/abra#359
Reviewed-by: decentral1se <decentral1se@noreply.git.coopcloud.tech>
Co-authored-by: Rich M <r.p.makepeace@gmail.com>
Co-committed-by: Rich M <r.p.makepeace@gmail.com>
2024-04-06 21:41:37 +00:00
test 99e3ed416f fix: secret name generation when secretId is not part of the secret name 2023-12-04 21:52:09 +00:00
p4u1 02b726db02 add comments to better explain how the length modifier gets added to the secret 2023-12-04 17:30:26 +00:00
p4u1 3957b7c965 proper env modifiers support
This implements proper modifier support in the env file using this new fork of the godotenv library. The modifier implementation is quite basic for but can be improved later if needed. See this commit for the actual implementation.

Because we are now using proper modifer parsing, it does not affect the parsing of value, so this is possible again:
```
MY_VAR="#foo"
```
Closes coop-cloud/organising#535
2023-12-01 11:03:52 +00:00
decentral1se c249c6ae9c fix: fix: trim comments that are not modifers
See coop-cloud/organising#505
2023-10-09 14:42:05 +02:00
decentral1se 47d3b77003 refactor: not generating here, skipping 2023-10-04 15:13:15 +02:00
decentral1se 8078e91e52 fix: warn if secrets not generated
See coop-cloud/organising#499
2023-10-04 15:13:14 +02:00
decentral1se e837835e00 test: remove duplicate call to EnsureCatalogue 2023-10-04 14:05:02 +02:00
decentral1se 892f6c0730 test: ensure catalogue is cloned 2023-09-30 08:19:16 +02:00
decentral1se d5b18d74ef fix: use secretId to match secret names in configs 2023-09-25 15:51:15 +02:00
decentral1se d02f659bf8 fix: secrets from config, --offline/chaos handling, typos
See coop-cloud/organising#464
2023-09-25 10:31:59 +02:00
decentral1se 7c1a97be72 refactor!: consolidate SSH handling
Closes coop-cloud/organising#389.
Closes coop-cloud/organising#341.
Closes coop-cloud/organising#326.
Closes coop-cloud/organising#380.
Closes coop-cloud/organising#360.
2023-02-02 08:37:14 +00:00
decentral1se 14187449a5 fix: fork passgen
See coop-cloud/organising#358
2022-11-14 15:18:54 +01:00
decentral1se 262009701e fix: guard against concurrent write errors 2022-03-12 16:59:45 +01:00
decentral1se 6a98024a2b refactor: drop old/upstream TODOs 2021-12-28 01:31:50 +01:00
decentral1se 3b5354b2a5 refactor: less quotes 2021-12-25 02:03:09 +01:00
decentral1se 8215bb455b fix: warn if secrets still exist 2021-12-13 12:29:26 +01:00
d1admin b6fe86f2ad fix: use correct args for debug log inputs 2021-09-14 16:14:09 +02:00
d1admin 9fcdc45851 feat: debug logging
Closes coop-cloud/organising#164.
2021-09-11 11:45:26 +02:00
d1admin b7742d5e18 refactor: use pkg directory structure 2021-09-05 21:37:03 +02:00