Formatter extension for reading file contents (proto)

This extension has the qualified name envoy.formatter.file_content

Note

This extension is functional but has not had substantial production burn time, use only with this caveat.

This extension is intended to be robust against both untrusted downstream and upstream traffic.

Tip

This extension extends and can be used with the following extension category:

This extension must be configured with one of the following type URLs:

extensions.formatter.file_content.v3.FileContent

[extensions.formatter.file_content.v3.FileContent proto]

FileContent formatter extension implements the %FILE_CONTENT(/path/to/file)% command operator that reads the contents of the specified file. File-based data is automatically re-read when the file is modified on disk.

Optionally, a directory to watch for changes can be specified with a colon followed by the directory to watch, eg %FILE_CONTENT(/path/to/file:/path/to/watch)%. See watched_directory for detailed semantics.