-
Notifications
You must be signed in to change notification settings - Fork 956
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add secret version manager permissions to apphosting p4sa (#7034)
* add secret version manager permissions to apphosting p4sa * test * revert * small fixes * fixes * fix test * fix env * reorder env vars and drop FIREBASE prefix on developerconnect
- Loading branch information
1 parent
03ed55a
commit aa90fa3
Showing
7 changed files
with
43 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -226,7 +226,7 @@ describe("secrets", () => { | |
gcsm.getIamPolicy.resolves(existingPolicy); | ||
gcsm.setIamPolicy.resolves(); | ||
|
||
await secrets.grantSecretAccess(secret.projectId, secret.name, { | ||
await secrets.grantSecretAccess(secret.projectId, "12345", secret.name, { | ||
buildServiceAccounts: ["buildSA"], | ||
runServiceAccounts: ["computeSA"], | ||
}); | ||
|
@@ -244,6 +244,12 @@ describe("secrets", () => { | |
role: "roles/secretmanager.viewer", | ||
members: ["serviceAccount:buildSA"], | ||
}, | ||
{ | ||
role: "roles/secretmanager.secretVersionManager", | ||
members: [ | ||
"serviceAccount:[email protected]", | ||
], | ||
}, | ||
]; | ||
|
||
expect(gcsm.getIamPolicy).to.be.calledWithMatch(secret); | ||
|