원클릭으로
secrets-management
Managing ragenix-encrypted secrets in the AMC monorepo
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Managing ragenix-encrypted secrets in the AMC monorepo
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Building, packaging, and deploying MTDediMod releases (server and client mods)
Debugging crash dumps, PDB symbols, and UE4SS Lua GC issues in MTDediMod
SSH access to AMC servers and debugging amc-backend services
| name | secrets-management |
| description | Managing ragenix-encrypted secrets in the AMC monorepo |
Secrets are stored as ragenix-encrypted .age files in the secrets/ directory. Plaintext .env files exist alongside their .age counterparts for editing convenience.
| Plaintext | Encrypted | Used by |
|---|---|---|
peripheral-bots.env | peripheral-bots.age | amc-peripheral systemd service |
backend.age | — | amc-backend NixOS container |
After modifying a plaintext secrets file, re-encrypt it from the secrets/ directory:
cd secrets
cat peripheral-bots.env | ragenix --editor - -e peripheral-bots.age
This pipes the plaintext into ragenix as the "editor" input, re-encrypting in place.
[!IMPORTANT] You must re-encrypt before deploying. The NixOS service reads the
.agefile, not the plaintext.env.
Secrets flow through: ragenix .age file → NixOS age.secrets → systemd EnvironmentFile → Python os.environ.get().
For amc-peripheral, this is configured in flake.nix:
age.secrets.peripheral-bots = {
file = ./secrets/peripheral-bots.age;
mode = "400";
};
services.amc-peripheral = {
environmentFile = config.age.secrets.peripheral-bots.path;
};