[issue2551182] Enhance configuration module to allow loading values from an external file.

John Rouillard <[email protected]> Sun, 12 Dec 2021 00:31:13 +0000
Newsgroups gmane.comp.bug-tracking.roundup.devel
Message-ID <[email protected]>
New submission from John Rouillard:

The tracker config.ini has multiple secret tokens in it:

  etag token
  jwt token

it would be nice to be able to put a placeholder these fields that allows
the contents of an external file to be loaded.

This would allow the config file to be stored in CM safely.

Maybe use a (pseudo) file url?

  file://filename is an invalid URL, interpret it as filename relative to the 
                  tracker home.
  file:///home/roundup/filename valid URL for file at /home/roundup/filename
                                absolute path

in both these cases, file:// should not start a valid token so easy to identify.

This may also be useful for issue2551064 if we need to rotate keys or specify
multiple keys. Each line could be a separate key.

----------
messages: 7416
nosy: rouilj
severity: normal
status: new
title: Enhance configuration module to allow loading values from an external file.
type: rfe

_________________________________________________
Roundup tracker <[email protected]>
<https://issues.roundup-tracker.org/issue2551182>
_________________________________________________