2022-04-05 21:04:32 +00:00
|
|
|
{ ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
resource.vault_gcp_secret_roleset.lukegbcom_deployer = {
|
|
|
|
backend = "\${vault_gcp_secret_backend.gcp.path}";
|
|
|
|
roleset = "lukegbcom-deployer";
|
|
|
|
project = "lukegbcom";
|
|
|
|
secret_type = "access_token";
|
|
|
|
token_scopes = [
|
|
|
|
"https://www.googleapis.com/auth/cloud-platform"
|
|
|
|
"https://www.googleapis.com/auth/firebase"
|
|
|
|
];
|
|
|
|
binding = [{
|
|
|
|
resource = "//cloudresourcemanager.googleapis.com/projects/lukegbcom";
|
|
|
|
roles = ["roles/firebasehosting.admin"];
|
2023-02-25 22:11:35 +00:00
|
|
|
} {
|
|
|
|
resource = "buckets/lukegb-flipperzero";
|
|
|
|
roles = ["roles/storage.objectAdmin"];
|
2022-04-05 21:04:32 +00:00
|
|
|
}];
|
|
|
|
};
|
|
|
|
|
|
|
|
my.servers.clouvider-lon01.appPolicies.gitlab-runner = ''
|
|
|
|
path "''${vault_gcp_secret_roleset.lukegbcom_deployer.backend}/roleset/''${vault_gcp_secret_roleset.lukegbcom_deployer.roleset}/token" {
|
|
|
|
capabilities = ["read"]
|
|
|
|
}
|
|
|
|
'';
|
2023-02-25 22:16:56 +00:00
|
|
|
my.servers.cofractal-ams01.appPolicies.gitlab-runner = ''
|
|
|
|
path "''${vault_gcp_secret_roleset.lukegbcom_deployer.backend}/roleset/''${vault_gcp_secret_roleset.lukegbcom_deployer.roleset}/token" {
|
|
|
|
capabilities = ["read"]
|
|
|
|
}
|
|
|
|
'';
|
2022-04-05 21:04:32 +00:00
|
|
|
}
|