-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add confidential space #131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
4-projects/modules/base_env/example_confidential_space_project.tf
Outdated
Show resolved
Hide resolved
4-projects/modules/base_env/example_confidential_space_project.tf
Outdated
Show resolved
Hide resolved
|
|
||
| variable "image_digest" { | ||
| description = "SHA256 digest of the Docker image." | ||
| type = string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tá faltando um default = null nessa variável do image_digest
| description = "SHA256 digest of the Docker image." | ||
| type = string | ||
| } | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tem que adicioanr uma varivael nova
variable "confidential_space_workload_operator" {
description = "The person who runs the workload that operates on the combined confidential data. Entries must be in the standard GCP form: `user:[email protected]` or `serviceAccount:[email protected]`."
type = string
default = null
}
5-app-infra/modules/env_base/main.tf
Outdated
| */ | ||
|
|
||
| locals { | ||
| default_tee_image_reference = "us-central1-docker.pkg.dev/${local.env_project_id}/${google_artifact_registry_repository.ar_confidential_space.repository_id}/workload-confidential-space:latest" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
não pode estar fixo o us-central1, tem que ser o mesmo valor usado na criação do artifac registry var.artifact_registry_location
5-app-infra/modules/env_base/main.tf
Outdated
| resource "google_project_iam_member" "workload_sa_user" { | ||
| project = local.env_project_id | ||
| role = "roles/iam.serviceAccountUser" | ||
| member = "user:${data.google_client_config.default.account_id}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| member = "user:${data.google_client_config.default.account_id}" | |
| member = var.confidential_space_workload_operator" |
não existe data.google_client_config no codigo e vc tem que perguntar para o usuario
daniel-cit
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tá faltando toda a parte em que tem que criar o cloud build , e gerar a imagem
|
tem que rodar o |
No description provided.