### Teller Configuration Example Source: https://github.com/tellerops/teller/blob/master/README.md An example of a `.teller.yml` configuration file. It demonstrates how to define providers (like Hashicorp Vault and dotenv) and map secrets, including renaming keys and fetching environment variables. ```yaml providers: hashi_1: kind: hashicorp maps: - id: test-load path: /{{ get_env(name="TEST_LOAD_1", default="test") }}/users/user1 keys: GITHUB_TOKEN: == mg: FOO_BAR dot_1: kind: dotenv maps: - id: stg path: VAR_{{ get_env(name="STAGE", default="development") }} ``` -------------------------------- ### Install Teller CLI Source: https://github.com/tellerops/teller/blob/master/README.md Installs the Teller CLI from source using Cargo. This method allows for source code review and building a custom copy. ```bash cd teller-cli cargo install --path . ``` -------------------------------- ### Run Subprocesses with Teller Source: https://github.com/tellerops/teller/blob/master/README.md Executes a command (e.g., `node index.js`) with secrets managed by Teller. The `--reset`, `--shell` flags are used for environment setup. ```shell teller run --reset --shell -- node index.js ``` -------------------------------- ### Populate Templates Source: https://github.com/tellerops/teller/blob/master/README.md Populates custom templates using the Tera templating engine. Templates can reference secrets using the `key()` function. ```bash $ teller template --in config-templ.t ``` ```yaml production_var: {{ key(name="PRINT_NAME")}} production_mood: {{ key(name="PRINT_MOOD")}} ``` -------------------------------- ### Running Teller Tests Source: https://github.com/tellerops/teller/blob/master/README.md Command to run all Teller tests with all features enabled, requiring Docker or an equivalent environment. ```bash $ cargo test --all --all-features ``` -------------------------------- ### Teller Testing Configuration Source: https://github.com/tellerops/teller/blob/master/README.md Provides guidance on testing Teller, including conditional compilation for Windows Docker tests and resource semantics for handling 'empty' vs. 'not found' states in providers. ```rust #[cfg(not(windows))] ``` ```rust Error::NotFound ``` ```rust KV[] ``` -------------------------------- ### Docker Environment with Teller Source: https://github.com/tellerops/teller/blob/master/README.md Runs a Docker container (e.g., `alpine`) and populates its environment variables using secrets from Teller. ```shell docker run --rm -it --env-file <(teller env) alpine sh ``` -------------------------------- ### Write and Multi-write to Providers Source: https://github.com/tellerops/teller/blob/master/README.md Allows writing key-value pairs into Teller providers. Values are specified as `key=value` pairs. Supports writing to multiple providers simultaneously using the `--providers` flag. Sensitive values should be passed via environment variables. ```bash $ teller put --providers new --map-id one NEW_VAR=s33kret ``` ```yaml providers: new: kind: dotenv maps: - id: one path: new.env ``` -------------------------------- ### Populate Shell with Teller Secrets Source: https://github.com/tellerops/teller/blob/master/README.md Evaluates Teller secrets into the current shell environment, typically used in shell configuration files like `.zshrc`. ```shell eval "$(teller sh)" ``` -------------------------------- ### Delete and Multi-delete from Providers Source: https://github.com/tellerops/teller/blob/master/README.md Deletes specified keys from Teller providers. Supports deleting multiple keys at once and deleting from multiple providers using the `--providers` flag. ```bash $ teller delete --providers new --map-id one DELETE_ME ``` -------------------------------- ### CI Integration for Secret Scanning Source: https://github.com/tellerops/teller/blob/master/README.md Configures Teller to act as a linter in a CI pipeline, breaking the build if secrets are detected. Supports JSON output and scanning binary files. ```yaml run: teller scan --error-if-found ``` ```bash teller scan --json -b ``` -------------------------------- ### Export Data in YAML Format Source: https://github.com/tellerops/teller/blob/master/README.md Exports data in YAML format, suitable for use with Google Cloud Functions environment variables. ```bash $ teller export yaml ``` ```yaml FOO: "1" KEY: VALUE ``` -------------------------------- ### Scan Code for Secrets Source: https://github.com/tellerops/teller/blob/master/README.md Scans the project's code for hardcoded secrets. It can be configured to break the build if secrets are found. ```bash teller scan ``` -------------------------------- ### Copy/Sync Data Between Providers Source: https://github.com/tellerops/teller/blob/master/README.md Copies or synchronizes data between different Teller providers. Supports specific mapping key synchronization using the `/` format. Can update (upsert) or replace target mappings. ```bash $ teller copy --from source/dev --to target/prod,<...> ``` ```yaml providers: dot1: kind: dotenv maps: - id: one path: one.env dot2: kind: dotenv maps: - id: two path: two.env ``` -------------------------------- ### Export Data in JSON Format Source: https://github.com/tellerops/teller/blob/master/README.md Exports data in JSON format, suitable for processing with tools like `jq`. ```bash $ teller export json ``` ```json { "FOO": "1" } ``` -------------------------------- ### Redact Secrets from Process Output Source: https://github.com/tellerops/teller/blob/master/README.md Redacts secrets from standard input, logs, or files. Can be piped with commands like `cat` or `tail -f`. Supports input from stdin and output to stdout by default, with options to specify input and output files. ```bash $ cat some.log | teller redact ``` ```bash $ tail -f /var/log/apache.log | teller redact ``` ```bash $ teller redact --in dirty.csv --out clean.csv ``` -------------------------------- ### Inspect Teller Variables Source: https://github.com/tellerops/teller/blob/master/README.md Displays the current variables that Teller is managing. Only the first two letters of each variable are shown for security. ```shell teller show ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.