diff --git a/docs/reference/filters.md b/docs/reference/filters.md index a7beede318..ab25e5a999 100644 --- a/docs/reference/filters.md +++ b/docs/reference/filters.md @@ -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 diff --git a/secrets/file.go b/secrets/file.go index e23fa55094..f90e287402 100644 --- a/secrets/file.go +++ b/secrets/file.go @@ -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.