fix: don't expose sensible data
Signed-off-by: David Weber <david.weber@w3tec.ch>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-proxy-backend': patch
|
||||
---
|
||||
|
||||
The headers `Authorization` and `X-Api-Key` are sensitive and must be declared a secret.
|
||||
Vendored
+11
-1
@@ -31,7 +31,17 @@ export interface Config {
|
||||
/**
|
||||
* Object with extra headers to be added to target requests.
|
||||
*/
|
||||
headers?: { [key: string]: string };
|
||||
headers?: Partial<{
|
||||
/** @visibility secret */
|
||||
Authorization: string;
|
||||
/** @visibility secret */
|
||||
authorization: string;
|
||||
/** @visibility secret */
|
||||
'X-Api-Key': string;
|
||||
/** @visibility secret */
|
||||
'x-api-key': string;
|
||||
[key: string]: string;
|
||||
}>;
|
||||
/**
|
||||
* Changes the origin of the host header to the target URL. Default: true.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user