Skip to content
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

🔥 remove unused secret FIREBASE_ADMIN_CERT_PATH #38

Merged
merged 1 commit into from
Aug 18, 2024

Conversation

Shion1305
Copy link
Owner

No description provided.

Copy link

Plan Result

CI link

Plan: 0 to add, 1 to change, 0 to destroy.
  • Update
    • google_cloud_run_v2_service.release
Change Result (Click me)
  # google_cloud_run_v2_service.release will be updated in-place
  ~ resource "google_cloud_run_v2_service" "release" {
        id                      = "projects/lumos-profile-management/locations/asia-northeast1/services/release"
        name                    = "release"
        # (30 unchanged attributes hidden)

      ~ template {
            # (9 unchanged attributes hidden)

          ~ containers {
                name        = "nuxt3-release-1"
                # (5 unchanged attributes hidden)

              ~ env {
                  ~ name  = "FIREBASE_ADMIN_CERT_PATH" -> "JWT_SECRET"
                    # (1 unchanged attribute hidden)

                  ~ value_source {
                      ~ secret_key_ref {
                          ~ secret  = "FIREBASE_ADMIN_CERT_PATH" -> "JWT_SECRET"
                            # (1 unchanged attribute hidden)
                        }
                    }
                }
              ~ env {
                  ~ name  = "JWT_SECRET" -> "LINE_AUTH_URL"
                    # (1 unchanged attribute hidden)

                  ~ value_source {
                      ~ secret_key_ref {
                          ~ secret  = "JWT_SECRET" -> "LINE_AUTH_URL"
                            # (1 unchanged attribute hidden)
                        }
                    }
                }
              ~ env {
                  ~ name  = "LINE_AUTH_URL" -> "LINE_CALLBACK_URI"
                    # (1 unchanged attribute hidden)

                  ~ value_source {
                      ~ secret_key_ref {
                          ~ secret  = "LINE_AUTH_URL" -> "LINE_CALLBACK_URI"
                            # (1 unchanged attribute hidden)
                        }
                    }
                }
              ~ env {
                  ~ name  = "LINE_CALLBACK_URI" -> "LINE_CLIENT_ID"
                    # (1 unchanged attribute hidden)

                  ~ value_source {
                      ~ secret_key_ref {
                          ~ secret  = "LINE_CALLBACK_URI" -> "LINE_CLIENT_ID"
                            # (1 unchanged attribute hidden)
                        }
                    }
                }
              ~ env {
                  ~ name  = "LINE_CLIENT_ID" -> "LINE_CLIENT_SECRET"
                    # (1 unchanged attribute hidden)

                  ~ value_source {
                      ~ secret_key_ref {
                          ~ secret  = "LINE_CLIENT_ID" -> "LINE_CLIENT_SECRET"
                            # (1 unchanged attribute hidden)
                        }
                    }
                }
              - env {
                  - name  = "LINE_CLIENT_SECRET" -> null
                    # (1 unchanged attribute hidden)

                  - value_source {
                      - secret_key_ref {
                          - secret  = "LINE_CLIENT_SECRET" -> null
                          - version = "latest" -> null
                        }
                    }
                }

                # (10 unchanged blocks hidden)
            }

            # (1 unchanged block hidden)
        }

        # (1 unchanged block hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.

@Shion1305 Shion1305 merged commit 6ff9807 into main Aug 18, 2024
3 checks passed
@Shion1305 Shion1305 deleted the shion/remove-unused-secret branch August 18, 2024 15:07
Copy link

✅ Apply Succeeded

CI link

Apply complete! Resources: 0 added, 1 changed, 0 destroyed.
Details (Click me)
Acquiring state lock. This may take a few moments...
data.google_secret_manager_secret.line_client_secret: Reading...
data.google_secret_manager_secret.jwt_secret: Reading...
data.google_secret_manager_secret.line_callback_uri: Reading...
data.google_secret_manager_secret.discord_member_role_id: Reading...
data.google_secret_manager_secret.line_auth_url: Reading...
data.google_secret_manager_secret.discord_client_secret: Reading...
data.google_secret_manager_secret.discord_client_id: Reading...
data.google_secret_manager_secret.line_client_id: Reading...
data.google_secret_manager_secret.discord_bot_token: Reading...
google_artifact_registry_repository.main-repo: Refreshing state... [id=projects/lumos-profile-management/locations/asia-northeast1/repositories/main]
data.google_secret_manager_secret.discord_client_secret: Read complete after 0s [id=projects/lumos-profile-management/secrets/DISCORD_CLIENT_SECRET]
data.google_secret_manager_secret.discord_guild_id: Reading...
data.google_secret_manager_secret.line_callback_uri: Read complete after 0s [id=projects/lumos-profile-management/secrets/LINE_CALLBACK_URI]
data.google_secret_manager_secret.discord_callback_uri: Reading...
data.google_secret_manager_secret.line_client_secret: Read complete after 0s [id=projects/lumos-profile-management/secrets/LINE_CLIENT_SECRET]
data.google_secret_manager_secret.discord_auth_url: Reading...
data.google_secret_manager_secret.jwt_secret: Read complete after 0s [id=projects/lumos-profile-management/secrets/JWT_SECRET]
data.google_secret_manager_secret.line_client_id: Read complete after 0s [id=projects/lumos-profile-management/secrets/LINE_CLIENT_ID]
data.google_secret_manager_secret.line_auth_url: Read complete after 0s [id=projects/lumos-profile-management/secrets/LINE_AUTH_URL]
data.google_secret_manager_secret.discord_member_role_id: Read complete after 0s [id=projects/lumos-profile-management/secrets/DISCORD_MEMBER_ROLE_ID]
data.google_secret_manager_secret.discord_bot_token: Read complete after 0s [id=projects/lumos-profile-management/secrets/DISCORD_BOT_TOKEN]
data.google_secret_manager_secret.discord_client_id: Read complete after 0s [id=projects/lumos-profile-management/secrets/DISCORD_CLIENT_ID]
data.google_secret_manager_secret.discord_guild_id: Read complete after 0s [id=projects/lumos-profile-management/secrets/DISCORD_GUILD_ID]
data.google_secret_manager_secret.discord_auth_url: Read complete after 0s [id=projects/lumos-profile-management/secrets/DISCORD_AUTH_URL]
data.google_secret_manager_secret.discord_callback_uri: Read complete after 0s [id=projects/lumos-profile-management/secrets/DISCORD_CALLBACK_URI]
google_cloud_run_v2_service.release: Refreshing state... [id=projects/lumos-profile-management/locations/asia-northeast1/services/release]

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  ~ update in-place

Terraform will perform the following actions:

  # google_cloud_run_v2_service.release will be updated in-place
  ~ resource "google_cloud_run_v2_service" "release" {
        id                      = "projects/lumos-profile-management/locations/asia-northeast1/services/release"
        name                    = "release"
        # (30 unchanged attributes hidden)

      ~ template {
            # (9 unchanged attributes hidden)

          ~ containers {
                name        = "nuxt3-release-1"
                # (5 unchanged attributes hidden)

              ~ env {
                  ~ name  = "FIREBASE_ADMIN_CERT_PATH" -> "JWT_SECRET"
                    # (1 unchanged attribute hidden)

                  ~ value_source {
                      ~ secret_key_ref {
                          ~ secret  = "FIREBASE_ADMIN_CERT_PATH" -> "JWT_SECRET"
                            # (1 unchanged attribute hidden)
                        }
                    }
                }
              ~ env {
                  ~ name  = "JWT_SECRET" -> "LINE_AUTH_URL"
                    # (1 unchanged attribute hidden)

                  ~ value_source {
                      ~ secret_key_ref {
                          ~ secret  = "JWT_SECRET" -> "LINE_AUTH_URL"
                            # (1 unchanged attribute hidden)
                        }
                    }
                }
              ~ env {
                  ~ name  = "LINE_AUTH_URL" -> "LINE_CALLBACK_URI"
                    # (1 unchanged attribute hidden)

                  ~ value_source {
                      ~ secret_key_ref {
                          ~ secret  = "LINE_AUTH_URL" -> "LINE_CALLBACK_URI"
                            # (1 unchanged attribute hidden)
                        }
                    }
                }
              ~ env {
                  ~ name  = "LINE_CALLBACK_URI" -> "LINE_CLIENT_ID"
                    # (1 unchanged attribute hidden)

                  ~ value_source {
                      ~ secret_key_ref {
                          ~ secret  = "LINE_CALLBACK_URI" -> "LINE_CLIENT_ID"
                            # (1 unchanged attribute hidden)
                        }
                    }
                }
              ~ env {
                  ~ name  = "LINE_CLIENT_ID" -> "LINE_CLIENT_SECRET"
                    # (1 unchanged attribute hidden)

                  ~ value_source {
                      ~ secret_key_ref {
                          ~ secret  = "LINE_CLIENT_ID" -> "LINE_CLIENT_SECRET"
                            # (1 unchanged attribute hidden)
                        }
                    }
                }
              - env {
                  - name  = "LINE_CLIENT_SECRET" -> null
                    # (1 unchanged attribute hidden)

                  - value_source {
                      - secret_key_ref {
                          - secret  = "LINE_CLIENT_SECRET" -> null
                          - version = "latest" -> null
                        }
                    }
                }

                # (10 unchanged blocks hidden)
            }

            # (1 unchanged block hidden)
        }

        # (1 unchanged block hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.
google_cloud_run_v2_service.release: Modifying... [id=projects/lumos-profile-management/locations/asia-northeast1/services/release]
google_cloud_run_v2_service.release: Still modifying... [id=projects/lumos-profile-management/locations/asia-northeast1/services/release, 10s elapsed]
google_cloud_run_v2_service.release: Still modifying... [id=projects/lumos-profile-management/locations/asia-northeast1/services/release, 20s elapsed]
google_cloud_run_v2_service.release: Modifications complete after 25s [id=projects/lumos-profile-management/locations/asia-northeast1/services/release]

Apply complete! Resources: 0 added, 1 changed, 0 destroyed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant