mirror of
https://github.com/fosrl/newt.git
synced 2026-03-09 07:12:28 -05:00
Read ID & SECRET from files #27
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @thalin on GitHub (May 22, 2025).
Originally assigned to: @oschwartz10612 on GitHub.
A standard security practice is to pass secret values in files so that they aren't exposed via /proc and/or ps. It would be great if you could specify --id-file and --secret-file to pass along these values as files instead of directly on the command line.
An additional bonus would be being able to set _FILE environment variables for these as well, to match the existing environment variables from which newt reads secrets now.
@oschwartz10612 commented on GitHub (May 22, 2025):
The id and secret are actually saved in the files at the following locations, depending on your operating system after you do a initial connection with the values. This should be documented better and we should also add a way to control the files so I will leave this open.
@wolrah commented on GitHub (Jul 11, 2025):
I'd like to also see a standard system-wide location like /etc/ used instead of /root/.config/ when running as a service.
@vworldat commented on GitHub (Aug 16, 2025):
I'd also really prefer a
NEWT_SECRET_FILEenv option as recommended in the docker compose docs: https://docs.docker.com/compose/how-tos/use-secrets/@oschwartz10612 commented on GitHub (Aug 23, 2025):
This is actually currently possible with the latest newt! It already
looks for a config file:
... and that file can be changed with the CONFIG_FILE env var found at
websocket/config.go. Need to document this better...