Add secret generation to file resource #22

Merged
antman merged 3 commits from add-secret-generation-to-file-resource into main 2026-09-03 08:43:44 +00:00
Owner

Motivation

When installing applications we sometimes want to generate some secret values in files, such as creating random secrets in an application's .env file.

Solution

Mustache views support functions, so I've added a randomValue method to the view used by the file resource to render files.

### Motivation When installing applications we sometimes want to generate some secret values in files, such as creating random secrets in an application's `.env` file. ### Solution Mustache views support functions, so I've added a `randomValue` method to the view used by the file resource to render files.
Add secret generation to file resource
Some checks failed
/ test-and-lint (push) Failing after 25s
955e5ecc51
rename random value method
Some checks failed
/ test-and-lint (push) Failing after 7s
a444fad385
fixed test
All checks were successful
/ test-and-lint (push) Successful in 3m6s
466ca9ad40
antman merged commit 964a40fb00 into main 2026-09-03 08:43:44 +00:00
antman deleted branch add-secret-generation-to-file-resource 2026-09-03 08:43:44 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
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
kill-the-cloud/server-manager!22
No description provided.