Apprise configuration files to support 'include' keyword #226
Labels
enhancement
public_collaboration
Share your thoughts! Is this a good idea? What would you do differently?
💡 The Idea
I was just thinking that it might be useful to support the keyword
include
in both the YAML and TEXT Apprise configuration files. For text files it would look like:YAML configuration files would be similar, it would just be it's own section:
The idea here is people who use the default (always iincluded configuration files that the CLI offers), they can use this entry as a way to have the CLI automatically fetch from a remote server.
Things to consider:
include
statement.include
could effectively include itself (solved by controlling recursion above).recursion
which by default is set to 0 (or None). Setting this to a positive integer however would define how many times aninclude
could be called from within a configuration already included. e.g.:include
would respect cache and re-retrieve content if required to do so🔒 Security
file://
based configurations will include relative to the configuration file it was read from.file://
based configuration if the request to do so came from a non-file://
based one (such ashttp://
). Only afile://
based configuration can include anotherfile://
based one.memory://
based configurations can't includefile://
based either on it's own. However developers can setinsecure_includes=True
when callingApprise.add_config()
to over-ride this.🔨 Breaking Feature
Nothing would break per say but this introduces some security issues that i think having the
include
feature disabled by default will solve.The text was updated successfully, but these errors were encountered: