Skip to content

Commit

Permalink
fix bearerinjector secrets key docs (#1674)
Browse files Browse the repository at this point in the history
Signed-off-by: Arpad Ryszka <[email protected]>
  • Loading branch information
aryszka authored Jan 4, 2021
1 parent 8f1754e commit 3f46e42
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/reference/filters.md
Original file line number Diff line number Diff line change
Expand Up @@ -2142,8 +2142,8 @@ This filter should be used as an [egress](egress.md) only feature.
Example:
```
egress1: Method("POST") && Host("api.example.com") -> bearerinjector("write-token") -> "https://api.example.com/shoes";
egress2: Method("GET") && Host("api.example.com") -> bearerinjector("read-token") -> "https://api.example.com/shoes";
egress1: Method("POST") && Host("api.example.com") -> bearerinjector("/tmp/secrets/write-token") -> "https://api.example.com/shoes";
egress2: Method("GET") && Host("api.example.com") -> bearerinjector("/tmp/secrets/read-token") -> "https://api.example.com/shoes";
```
To integrate with the `bearerinjector` filter you need to run skipper
Expand Down
2 changes: 1 addition & 1 deletion secrets/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (sp *SecretPaths) updateSecret(s string, dat []byte) {
}

// Add adds a file or directory to find secrets in all files
// found. The basename of the file will be the key to get the
// found. The path of the file will be the key to get the
// secret. Add is not synchronized and is not safe to call
// concurrently. Add has a side effect of lazily init a goroutine to
// start a single background refresher for the SecretPaths instance.
Expand Down

0 comments on commit 3f46e42

Please sign in to comment.