Merge pull request #17959 from dweber019/fix/proxy-backend-secrets

fix: don't expose sensible data in proxy backend
This commit is contained in:
Johan Haals
2023-05-25 16:58:41 +02:00
committed by GitHub
2 changed files with 16 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-proxy-backend': patch
---
Marked headers `Authorization` and `X-Api-Key` as secret in order to not show up in frontend configuration.
+11 -1
View File
@@ -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.
*/