Decrease access level to read-only

Signed-off-by: avkudryashov <41747012+avkudryashov@users.noreply.github.com>
Signed-off-by: Anatoly Kudriashov <kav2k13@gmail.com>
This commit is contained in:
avkudryashov
2023-06-22 09:31:40 +02:00
committed by Anatoly Kudriashov
parent 126e862ece
commit cc27fa4a1a
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-kubernetes': patch
---
Changed Gcloud auth scope to read-only
@@ -39,7 +39,7 @@ export class GoogleKubernetesAuthProvider implements KubernetesAuthProvider {
async getCredentials(): Promise<{ token: string }> {
return {
token: await this.authProvider.getAccessToken(
'https://www.googleapis.com/auth/cloud-platform',
'https://www.googleapis.com/auth/cloud-platform.read-only',
),
};
}