Skip to content

Bump pyjwt from 2.13.0 to 2.15.0 in /examples/function-gh-app-token - #53

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/examples/function-gh-app-token/pyjwt-2.15.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/examples/function-gh-app-token/pyjwt-2.15.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 1, 2026

Copy link
Copy Markdown
Contributor

Bumps pyjwt from 2.13.0 to 2.15.0.

Release notes

Sourced from pyjwt's releases.

2.15.0

See the 2.15.0 changelog for complete release details.

2.14.0

See the 2.14.0 changelog for the complete release details and related security advisories.

Changelog

Sourced from pyjwt's changelog.

v2.15.0 <https://github.com/jpadilla/pyjwt/compare/2.14.0...2.15.0>__

Security


- Wrap recursion errors from deeply nested JWT payloads in ``DecodeError``
  instead of exposing a raw ``RecursionError``.

Added


- Support Python 3.15 by @kytta in `[#1202](https://github.com/jpadilla/pyjwt/issues/1202) &lt;https://github.com/jpadilla/pyjwt/pull/1202&gt;`__

Changed

  • JWKSetCache now stores the parsed PyJWKSet rather than the raw JWKS payload, so a cache hit no longer re-parses every key. JWKSetCache.put() accepts either form and raises PyJWKSetError for anything else. As a result, PyJWKClient.get_jwk_set() returns the same PyJWKSet instance for as long as it stays cached, rather than a freshly built one per call in [#1208](https://github.com/jpadilla/pyjwt/issues/1208) &lt;https://github.com/jpadilla/pyjwt/pull/1208&gt;__
  • PyJWKClient.fetch_data() now raises PyJWKClientError(&quot;The JWKS endpoint did not return a JSON object&quot;) when the endpoint response is not a JSON object, instead of returning it for get_jwk_set() to reject. Callers reaching the JWKS through get_jwk_set() see the same error as before in [#1208](https://github.com/jpadilla/pyjwt/issues/1208) &lt;https://github.com/jpadilla/pyjwt/pull/1208&gt;__

Fixed


- Return cached ``PyJWKSet`` values from ``PyJWKClient.get_jwk_set()`` instead
  of raising ``PyJWKClientError(&quot;The JWKS endpoint did not return a JSON
  object&quot;)``. ``JWKSetCache.put()`` documents ``PyJWKSet`` as the cached value,
  so callers pre-populating the cache to avoid a network round-trip could not
  read it back in `[#914](https://github.com/jpadilla/pyjwt/issues/914) &lt;https://github.com/jpadilla/pyjwt/issues/914&gt;`__ and
  `[#1208](https://github.com/jpadilla/pyjwt/issues/1208) &lt;https://github.com/jpadilla/pyjwt/pull/1208&gt;`__
- ``PyJWKClient.get_jwk_set()`` now caches the key set it returns, so a
  ``fetch_data()`` override that filters or transforms the JWKS is no longer
  undone by the next cache hit in
  `[#1208](https://github.com/jpadilla/pyjwt/issues/1208) &lt;https://github.com/jpadilla/pyjwt/pull/1208&gt;`__
- Raise the documented ``PyJWTError`` subclass instead of leaking a
  ``TypeError`` when the ``exp``, ``nbf``, or ``iat`` claim decodes to a
  non-numeric, non-string value such as a list, dict, or ``null``.
- Reject OKP JWK private keys when their public ``x`` component does not
  match the private ``d`` component.
- Treat malformed JWK Set members as unusable keys rather than letting
  ``AttributeError`` or ``TypeError`` escape ``PyJWKSet``. A member that is not
&lt;/tr&gt;&lt;/table&gt; 
</code></pre>
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>

<ul>
<li><a href="https://github.com/jpadilla/pyjwt/commit/1d41a6478e1562e68ff667fcd703356acf085f68&quot;&gt;&lt;code&gt;1d41a64&lt;/code&gt;&lt;/a> chore: prepare 2.15.0 release</li>
<li><a href="https://github.com/jpadilla/pyjwt/commit/9bc06658f875b9b40091539140bbbdc4639161c3&quot;&gt;&lt;code&gt;9bc0665&lt;/code&gt;&lt;/a> fix: make recursive payload tests deterministic</li>
<li><a href="https://github.com/jpadilla/pyjwt/commit/5fde08a6cf906aa7698de2d6391d88b73006b17b&quot;&gt;&lt;code&gt;5fde08a&lt;/code&gt;&lt;/a> fix: normalize recursive JWT payload errors</li>
<li><a href="https://github.com/jpadilla/pyjwt/commit/171062d2d734315272a901100aa4b109f2fc3c19&quot;&gt;&lt;code&gt;171062d&lt;/code&gt;&lt;/a> utils: mention bytes in force_bytes type error (<a href="https://redirect.github.com/jpadilla/pyjwt/issues/1173&quot;&gt;#1173&lt;/a&gt;)&lt;/li>
<li><a href="https://github.com/jpadilla/pyjwt/commit/c9d4d5375bf464ef363506fed9eb6e7f33217ab6&quot;&gt;&lt;code&gt;c9d4d53&lt;/code&gt;&lt;/a> docs/conf: drop duplicate 'and' from read() docstring (<a href="https://redirect.github.com/jpadilla/pyjwt/issues/1174&quot;&gt;#1174&lt;/a&gt;)&lt;/li>
<li><a href="https://github.com/jpadilla/pyjwt/commit/2763752196113e1473b0ed7905aa6034aedfbe53&quot;&gt;&lt;code&gt;2763752&lt;/code&gt;&lt;/a> Add support for Python 3.15 (<a href="https://redirect.github.com/jpadilla/pyjwt/issues/1202&quot;&gt;#1202&lt;/a&gt;)&lt;/li>
<li><a href="https://github.com/jpadilla/pyjwt/commit/4adcd02722f5011c60079d3978dfc167b9a8eaa5&quot;&gt;&lt;code&gt;4adcd02&lt;/code&gt;&lt;/a> Catch http.client.HTTPException in PyJWKClient.fetch_data (<a href="https://redirect.github.com/jpadilla/pyjwt/issues/1201&quot;&gt;#1201&lt;/a&gt;)&lt;/li>
<li><a href="https://github.com/jpadilla/pyjwt/commit/9e501d993b4d3e7dba14bdb1722b1d993ac75097&quot;&gt;&lt;code&gt;9e501d9&lt;/code&gt;&lt;/a> fix: correct docstring typo in _validate_jti (<a href="https://redirect.github.com/jpadilla/pyjwt/issues/1179&quot;&gt;#1179&lt;/a&gt;)&lt;/li>
<li><a href="https://github.com/jpadilla/pyjwt/commit/4047c44d51950ffda15f40054508d3f17c43b1e2&quot;&gt;&lt;code&gt;4047c44&lt;/code&gt;&lt;/a> docs: clarify JWK certificate member handling (<a href="https://redirect.github.com/jpadilla/pyjwt/issues/1212&quot;&gt;#1212&lt;/a&gt;)&lt;/li>
<li><a href="https://github.com/jpadilla/pyjwt/commit/f4e2b59f543cc82d46d9d69922bba59e804216b9&quot;&gt;&lt;code&gt;f4e2b59&lt;/code&gt;&lt;/a> [pre-commit.ci] pre-commit autoupdate (<a href="https://redirect.github.com/jpadilla/pyjwt/issues/1210&quot;&gt;#1210&lt;/a&gt;)&lt;/li>
<li>Additional commits viewable in <a href="https://github.com/jpadilla/pyjwt/compare/2.13.0...2.15.0&quot;&gt;compare view</a></li>
</ul>
</details>

<br />

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Bumps [pyjwt](https://github.com/jpadilla/pyjwt) from 2.13.0 to 2.15.0.
- [Release notes](https://github.com/jpadilla/pyjwt/releases)
- [Changelog](https://github.com/jpadilla/pyjwt/blob/master/CHANGELOG.rst)
- [Commits](jpadilla/pyjwt@2.13.0...2.15.0)

---
updated-dependencies:
- dependency-name: pyjwt
  dependency-version: 2.15.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels Oct 1, 2026
@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown

Terraform plan in .

Plan: 1 to add, 2 to change, 24 to destroy.
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+   create
!~  update in-place
-   destroy

Terraform will perform the following actions:

  # module.infrastructure.google_project_iam_member.project_roles["roles/artifactregistry.admin"] will be created
+   resource "google_project_iam_member" "project_roles" {
+       etag    = (known after apply)
+       id      = (known after apply)
+       member  = "serviceAccount:gha-cloud-functions-deployment@jeffreyhung-test.iam.gserviceaccount.com"
+       project = "jeffreyhung-test"
+       role    = "roles/artifactregistry.admin"
    }

  # module.infrastructure.google_storage_bucket.staging_bucket will be updated in-place
!~  resource "google_storage_bucket" "staging_bucket" {
        id                          = "jeffreyhung-test-cloud-function-staging"
        name                        = "jeffreyhung-test-cloud-function-staging"
#        (19 unchanged attributes hidden)

+       lifecycle_rule {
+           action {
+               type          = "Delete"
#                (1 unchanged attribute hidden)
            }
+           condition {
+               age                    = 90
+               matches_prefix         = []
+               matches_storage_class  = []
+               matches_suffix         = []
+               with_state             = (known after apply)
#                (3 unchanged attributes hidden)
            }
        }

#        (2 unchanged blocks hidden)
    }

  # module.infrastructure.google_storage_bucket_iam_binding.tfstate-bucket-iam will be updated in-place
!~  resource "google_storage_bucket_iam_binding" "tfstate-bucket-iam" {
        id      = "b/jeffreyhung-test-tfstate/roles/storage.objectUser"
!~      members = [
-           "serviceAccount:gha-cf-tf-plan@jeffreyhung-test.iam.gserviceaccount.com",
#            (1 unchanged element hidden)
        ]
#        (3 unchanged attributes hidden)
    }

  # module.infrastructure.google_storage_bucket_iam_member.staging_bucket_get will be destroyed
  # (because google_storage_bucket_iam_member.staging_bucket_get is not in configuration)
-   resource "google_storage_bucket_iam_member" "staging_bucket_get" {
-       bucket = "b/jeffreyhung-test-cloud-function-staging" -> null
-       etag   = "CAg=" -> null
-       id     = "b/jeffreyhung-test-cloud-function-staging/roles/storage.objectViewer/serviceAccount:gha-cloud-functions-deployment@jeffreyhung-test.iam.gserviceaccount.com" -> null
-       member = "serviceAccount:gha-cloud-functions-deployment@jeffreyhung-test.iam.gserviceaccount.com" -> null
-       role   = "roles/storage.objectViewer" -> null
    }

  # module.infrastructure.google_storage_bucket_iam_member.tfstate_bucket_get will be destroyed
  # (because google_storage_bucket_iam_member.tfstate_bucket_get is not in configuration)
-   resource "google_storage_bucket_iam_member" "tfstate_bucket_get" {
-       bucket = "b/jeffreyhung-test-tfstate" -> null
-       etag   = "CBM=" -> null
-       id     = "b/jeffreyhung-test-tfstate/roles/storage.objectViewer/serviceAccount:gha-cloud-functions-deployment@jeffreyhung-test.iam.gserviceaccount.com" -> null
-       member = "serviceAccount:gha-cloud-functions-deployment@jeffreyhung-test.iam.gserviceaccount.com" -> null
-       role   = "roles/storage.objectViewer" -> null
    }

  # module.functions.module.cloud_function_gen2["example-gen2-cron"].google_cloudfunctions2_function.function will be destroyed
  # (because module.functions.module.cloud_function_gen2["example-gen2-cron"] is not in configuration)
-   resource "google_cloudfunctions2_function" "function" {
-       deletion_policy  = "DELETE" -> null
-       description      = "gen2 cloud function example" -> null
-       effective_labels = {
-           "owner"       = "team-security"
-           "terraformed" = "true"
        } -> null
-       environment      = "GEN_2" -> null
-       id               = "projects/jeffreyhung-test/locations/us-west1/functions/example-gen2-cron" -> null
-       labels           = {
-           "owner"       = "team-security"
-           "terraformed" = "true"
        } -> null
-       location         = "us-west1" -> null
-       name             = "example-gen2-cron" -> null
-       project          = "jeffreyhung-test" -> null
-       state            = "ACTIVE" -> null
-       terraform_labels = {
-           "owner"       = "team-security"
-           "terraformed" = "true"
        } -> null
-       update_time      = "2026-09-03T00:07:07.957984113Z" -> null
-       url              = "https://us-west1-jeffreyhung-test.cloudfunctions.net/example-gen2-cron" -> null
#        (1 unchanged attribute hidden)

-       build_config {
-           build                 = "projects/546928617664/locations/us-west1/builds/689bc512-1b28-4e90-b83d-b0950abe0740" -> null
-           docker_repository     = "projects/jeffreyhung-test/locations/us-west1/repositories/gcf-artifacts" -> null
-           entry_point           = "main" -> null
-           environment_variables = {
-               "ENV_1" = "jeffreyhung-test"
-               "ENV_2" = "345"
            } -> null
-           runtime               = "python311" -> null
#            (2 unchanged attributes hidden)

-           source {
-               storage_source {
-                   bucket     = "jeffreyhung-test-cloud-function-staging" -> null
-                   generation = 1724887117997665 -> null
-                   object     = "src-03bdfabf8c7adb2ef887fe89f69a0dbe.zip" -> null
                }
            }
        }

-       service_config {
-           all_traffic_on_latest_revision   = true -> null
-           available_cpu                    = "0.0833" -> null
-           available_memory                 = "256M" -> null
-           environment_variables            = {
-               "ENV_1"            = "jeffreyhung-test"
-               "ENV_2"            = "345"
-               "LOG_EXECUTION_ID" = "****"
            } -> null
-           ingress_settings                 = "ALLOW_ALL" -> null
-           max_instance_count               = 100 -> null
-           max_instance_request_concurrency = 1 -> null
-           min_instance_count               = 0 -> null
-           service                          = "projects/jeffreyhung-test/locations/us-west1/services/example-gen2-cron" -> null
-           service_account_email            = "cf-example-gen2-cron@jeffreyhung-test.iam.gserviceaccount.com" -> null
-           timeout_seconds                  = 60 -> null
-           uri                              = "https://example-gen2-cron-cxy77enrhq-uw.a.run.app" -> null
#            (5 unchanged attributes hidden)

-           secret_environment_variables {
-               key        = "test_key_1" -> null
-               project_id = "jeffreyhung-test" -> null
-               secret     = "test_key_1" -> null
-               version    = "latest" -> null
            }
        }
    }

  # module.functions.module.cloud_function_gen2["example-gen2-cron"].google_cloudfunctions2_function_iam_member.invoker_iam will be destroyed
  # (because google_cloudfunctions2_function_iam_member.invoker_iam is not in configuration)
-   resource "google_cloudfunctions2_function_iam_member" "invoker_iam" {
-       cloud_function = "projects/jeffreyhung-test/locations/us-west1/functions/example-gen2-cron" -> null
-       etag           = "BwZaiO7Aygw=" -> null
-       id             = "projects/jeffreyhung-test/locations/us-west1/functions/example-gen2-cron/roles/cloudfunctions.invoker/serviceAccount:cf-example-gen2-cron@jeffreyhung-test.iam.gserviceaccount.com" -> null
-       location       = "us-west1" -> null
-       member         = "serviceAccount:cf-example-gen2-cron@jeffreyhung-test.iam.gserviceaccount.com" -> null
-       project        = "jeffreyhung-test" -> null
-       role           = "roles/cloudfunctions.invoker" -> null
    }

  # module.functions.module.cloud_function_gen2["example-gen2-cron"].google_project_iam_member.function_sa_logwriter_iam will be destroyed
  # (because module.functions.module.cloud_function_gen2["example-gen2-cron"] is not in configuration)
-   resource "google_project_iam_member" "function_sa_logwriter_iam" {
-       etag    = "BwZaiO8+XAk=" -> null
-       id      = "jeffreyhung-test/roles/logging.logWriter/serviceAccount:cf-example-gen2-cron@jeffreyhung-test.iam.gserviceaccount.com" -> null
-       member  = "serviceAccount:cf-example-gen2-cron@jeffreyhung-test.iam.gserviceaccount.com" -> null
-       project = "jeffreyhung-test" -> null
-       role    = "roles/logging.logWriter" -> null
    }

  # module.functions.module.cloud_function_gen2["example-gen2-cron"].google_secret_manager_secret_iam_member.secret_iam["test_key_1"] will be destroyed
  # (because module.functions.module.cloud_function_gen2["example-gen2-cron"] is not in configuration)
-   resource "google_secret_manager_secret_iam_member" "secret_iam" {
-       etag      = "BwYszAAiUZ0=" -> null
-       id        = "projects/jeffreyhung-test/secrets/test_key_1/roles/secretmanager.secretAccessor/serviceAccount:cf-example-gen2-cron@jeffreyhung-test.iam.gserviceaccount.com" -> null
-       member    = "serviceAccount:cf-example-gen2-cron@jeffreyhung-test.iam.gserviceaccount.com" -> null
-       project   = "jeffreyhung-test" -> null
-       role      = "roles/secretmanager.secretAccessor" -> null
-       secret_id = "projects/jeffreyhung-test/secrets/test_key_1" -> null
    }

  # module.functions.module.cloud_function_gen2["example-gen2-cron"].google_service_account.function_sa will be destroyed
  # (because module.functions.module.cloud_function_gen2["example-gen2-cron"] is not in configuration)
-   resource "google_service_account" "function_sa" {
-       account_id      = "cf-example-gen2-cron" -> null
-       deletion_policy = "DELETE" -> null
-       description     = "Service account for example-gen2-cron, owned by team-security, managed by Terraform" -> null
-       disabled        = false -> null
-       display_name    = "Cloud Function Service Account for example-gen2-cron" -> null
-       email           = "cf-example-gen2-cron@jeffreyhung-test.iam.gserviceaccount.com" -> null
-       id              = "projects/jeffreyhung-test/serviceAccounts/cf-example-gen2-cron@jeffreyhung-test.iam.gserviceaccount.com" -> null
-       member          = "serviceAccount:cf-example-gen2-cron@jeffreyhung-test.iam.gserviceaccount.com" -> null
-       name            = "projects/jeffreyhung-test/serviceAccounts/cf-example-gen2-cron@jeffreyhung-test.iam.gserviceaccount.com" -> null
-       project         = "jeffreyhung-test" -> null
-       unique_id       = "105361016037165043108" -> null
    }

  # module.functions.module.cloud_function_gen2["example-gen2-cron"].google_storage_bucket_object.zip will be destroyed
  # (because module.functions.module.cloud_function_gen2["example-gen2-cron"] is not in configuration)
-   resource "google_storage_bucket_object" "zip" {
-       bucket              = "jeffreyhung-test-cloud-function-staging" -> null
-       content_type        = "application/zip" -> null
-       crc32c              = "GfLWGQ==" -> null
-       deletion_policy     = "DELETE" -> null
-       detect_md5hash      = "A736v4x62y74h/6J9poNvg==" -> null
-       event_based_hold    = false -> null
-       generation          = 1784932750923616 -> null
-       id                  = "jeffreyhung-test-cloud-function-staging-src-03bdfabf8c7adb2ef887fe89f69a0dbe.zip" -> null
-       md5hash             = "A736v4x62y74h/6J9poNvg==" -> null
-       md5hexhash          = "03bdfabf8c7adb2ef887fe89f69a0dbe" -> null
-       media_link          = "https://storage.googleapis.com/download/storage/v1/b/jeffreyhung-test-cloud-function-staging/o/src-03bdfabf8c7adb2ef887fe89f69a0dbe.zip?generation=1784932750923616&alt=media" -> null
-       metadata            = {
-           "owner"       = "team-security"
-           "terraformed" = "true"
        } -> null
-       name                = "src-03bdfabf8c7adb2ef887fe89f69a0dbe.zip" -> null
-       output_name         = "src-03bdfabf8c7adb2ef887fe89f69a0dbe.zip" -> null
-       self_link           = "https://www.googleapis.com/storage/v1/b/jeffreyhung-test-cloud-function-staging/o/src-03bdfabf8c7adb2ef887fe89f69a0dbe.zip" -> null
-       source              = "/tmp/example-gen2-cron.zip" -> null
-       storage_class       = "STANDARD" -> null
-       temporary_hold      = false -> null
#        (6 unchanged attributes hidden)
    }

  # module.functions.module.cloud_function_gen2["get-gh-app-token"].google_cloudfunctions2_function.function will be destroyed
  # (because module.functions.module.cloud_function_gen2["get-gh-app-token"] is not in configuration)
-   resource "google_cloudfunctions2_function" "function" {
-       deletion_policy  = "DELETE" -> null
-       description      = "example for using github app in cloud function" -> null
-       effective_labels = {
-           "goog-terraform-provisioned" = "true"
-           "owner"                      = "team-security"
-           "terraformed"                = "true"
        } -> null
-       environment      = "GEN_2" -> null
-       id               = "projects/jeffreyhung-test/locations/us-west1/functions/get-gh-app-token" -> null
-       labels           = {
-           "owner"       = "team-security"
-           "terraformed" = "true"
        } -> null
-       location         = "us-west1" -> null
-       name             = "get-gh-app-token" -> null
-       project          = "jeffreyhung-test" -> null
-       state            = "ACTIVE" -> null
-       terraform_labels = {
-           "goog-terraform-provisioned" = "true"
-           "owner"                      = "team-security"
-           "terraformed"                = "true"
        } -> null
-       update_time      = "2026-09-02T18:06:38.144698120Z" -> null
-       url              = "https://us-west1-jeffreyhung-test.cloudfunctions.net/get-gh-app-token" -> null
#        (1 unchanged attribute hidden)

-       build_config {
-           build                 = "projects/546928617664/locations/us-west1/builds/44b67eb2-bda5-421c-99fe-414f6c835c9a" -> null
-           docker_repository     = "projects/jeffreyhung-test/locations/us-west1/repositories/gcf-artifacts" -> null
-           entry_point           = "main" -> null
-           environment_variables = {} -> null
-           runtime               = "python311" -> null
#            (2 unchanged attributes hidden)

-           automatic_update_policy {}

-           source {
-               storage_source {
-                   bucket     = "jeffreyhung-test-cloud-function-staging" -> null
-                   generation = 1738104634112667 -> null
-                   object     = "src-b8accd8c1708a7aa08b64f4e46452c3b.zip" -> null
                }
            }
        }

-       service_config {
-           all_traffic_on_latest_revision   = true -> null
-           available_cpu                    = "0.0833" -> null
-           available_memory                 = "256M" -> null
-           environment_variables            = {
-               "LOG_EXECUTION_ID" = "****"
            } -> null
-           ingress_settings                 = "ALLOW_ALL" -> null
-           max_instance_count               = 100 -> null
-           max_instance_request_concurrency = 1 -> null
-           min_instance_count               = 0 -> null
-           service                          = "projects/jeffreyhung-test/locations/us-west1/services/get-gh-app-token" -> null
-           service_account_email            = "cf-get-gh-app-token@jeffreyhung-test.iam.gserviceaccount.com" -> null
-           timeout_seconds                  = 60 -> null
-           uri                              = "https://get-gh-app-token-cxy77enrhq-uw.a.run.app" -> null
#            (5 unchanged attributes hidden)

-           secret_environment_variables {
-               key        = "GH_APP_ID" -> null
-               project_id = "jeffreyhung-test" -> null
-               secret     = "GH_APP_ID" -> null
-               version    = "latest" -> null
            }
-           secret_environment_variables {
-               key        = "GH_APP_INSTALLATION_ID" -> null
-               project_id = "jeffreyhung-test" -> null
-               secret     = "GH_APP_INSTALLATION_ID" -> null
-               version    = "latest" -> null
            }
-           secret_environment_variables {
-               key        = "GH_APP_PRI_KEY" -> null
-               project_id = "jeffreyhung-test" -> null
-               secret     = "GH_APP_PRI_KEY" -> null
-               version    = "latest" -> null
            }
        }
    }

  # module.functions.module.cloud_function_gen2["get-gh-app-token"].google_cloudfunctions2_function_iam_member.invoker_iam will be destroyed
  # (because google_cloudfunctions2_function_iam_member.invoker_iam is not in configuration)
-   resource "google_cloudfunctions2_function_iam_member" "invoker_iam" {
-       cloud_function = "projects/jeffreyhung-test/locations/us-west1/functions/get-gh-app-token" -> null
-       etag           = "BwYt5cWtNig=" -> null
-       id             = "projects/jeffreyhung-test/locations/us-west1/functions/get-gh-app-token/roles/cloudfunctions.invoker/serviceAccount:cf-get-gh-app-token@jeffreyhung-test.iam.gserviceaccount.com" -> null
-       location       = "us-west1" -> null
-       member         = "serviceAccount:cf-get-gh-app-token@jeffreyhung-test.iam.gserviceaccount.com" -> null
-       project        = "jeffreyhung-test" -> null
-       role           = "roles/cloudfunctions.invoker" -> null
    }

  # module.functions.module.cloud_function_gen2["get-gh-app-token"].google_project_iam_member.function_sa_logwriter_iam will be destroyed
  # (because module.functions.module.cloud_function_gen2["get-gh-app-token"] is not in configuration)
-   resource "google_project_iam_member" "function_sa_logwriter_iam" {
-       etag    = "BwZaiO8+XAk=" -> null
-       id      = "jeffreyhung-test/roles/logging.logWriter/serviceAccount:cf-get-gh-app-token@jeffreyhung-test.iam.gserviceaccount.com" -> null
-       member  = "serviceAccount:cf-get-gh-app-token@jeffreyhung-test.iam.gserviceaccount.com" -> null
-       project = "jeffreyhung-test" -> null
-       role    = "roles/logging.logWriter" -> null
    }

  # module.functions.module.cloud_function_gen2["get-gh-app-token"].google_secret_manager_secret_iam_member.secret_iam["GH_APP_ID"] will be destroyed
  # (because module.functions.module.cloud_function_gen2["get-gh-app-token"] is not in configuration)
-   resource "google_secret_manager_secret_iam_member" "secret_iam" {
-       etag      = "BwYsy/kbUZY=" -> null
-       id        = "projects/jeffreyhung-test/secrets/GH_APP_ID/roles/secretmanager.secretAccessor/serviceAccount:cf-get-gh-app-token@jeffreyhung-test.iam.gserviceaccount.com" -> null
-       member    = "serviceAccount:cf-get-gh-app-token@jeffreyhung-test.iam.gserviceaccount.com" -> null
-       project   = "jeffreyhung-test" -> null
-       role      = "roles/secretmanager.secretAccessor" -> null
-       secret_id = "projects/jeffreyhung-test/secrets/GH_APP_ID" -> null
    }

  # module.functions.module.cloud_function_gen2["get-gh-app-token"].google_secret_manager_secret_iam_member.secret_iam["GH_APP_INSTALLATION_ID"] will be destroyed
  # (because module.functions.module.cloud_function_gen2["get-gh-app-token"] is not in configuration)
-   resource "google_secret_manager_secret_iam_member" "secret_iam" {
-       etag      = "BwYsy/keYIs=" -> null
-       id        = "projects/jeffreyhung-test/secrets/GH_APP_INSTALLATION_ID/roles/secretmanager.secretAccessor/serviceAccount:cf-get-gh-app-token@jeffreyhung-test.iam.gserviceaccount.com" -> null
-       member    = "serviceAccount:cf-get-gh-app-token@jeffreyhung-test.iam.gserviceaccount.com" -> null
-       project   = "jeffreyhung-test" -> null
-       role      = "roles/secretmanager.secretAccessor" -> null
-       secret_id = "projects/jeffreyhung-test/secrets/GH_APP_INSTALLATION_ID" -> null
    }

  # module.functions.module.cloud_function_gen2["get-gh-app-token"].google_secret_manager_secret_iam_member.secret_iam["GH_APP_PRI_KEY"] will be destroyed
  # (because module.functions.module.cloud_function_gen2["get-gh-app-token"] is not in configuration)
-   resource "google_secret_manager_secret_iam_member" "secret_iam" {
-       etag      = "BwYsy/jhXsg=" -> null
-       id        = "projects/jeffreyhung-test/secrets/GH_APP_PRI_KEY/roles/secretmanager.secretAccessor/serviceAccount:cf-get-gh-app-token@jeffreyhung-test.iam.gserviceaccount.com" -> null
-       member    = "serviceAccount:cf-get-gh-app-token@jeffreyhung-test.iam.gserviceaccount.com" -> null
-       project   = "jeffreyhung-test" -> null
-       role      = "roles/secretmanager.secretAccessor" -> null
-       secret_id = "projects/jeffreyhung-test/secrets/GH_APP_PRI_KEY" -> null
    }

  # module.functions.module.cloud_function_gen2["get-gh-app-token"].google_service_account.function_sa will be destroyed
  # (because module.functions.module.cloud_function_gen2["get-gh-app-token"] is not in configuration)
-   resource "google_service_account" "function_sa" {
-       account_id      = "cf-get-gh-app-token" -> null
-       deletion_policy = "DELETE" -> null
-       description     = "Service account for get-gh-app-token, owned by team-security, managed by Terraform" -> null
-       disabled        = false -> null
-       display_name    = "Cloud Function Service Account for get-gh-app-token" -> null
-       email           = "cf-get-gh-app-token@jeffreyhung-test.iam.gserviceaccount.com" -> null
-       id              = "projects/jeffreyhung-test/serviceAccounts/cf-get-gh-app-token@jeffreyhung-test.iam.gserviceaccount.com" -> null
-       member          = "serviceAccount:cf-get-gh-app-token@jeffreyhung-test.iam.gserviceaccount.com" -> null
-       name            = "projects/jeffreyhung-test/serviceAccounts/cf-get-gh-app-token@jeffreyhung-test.iam.gserviceaccount.com" -> null
-       project         = "jeffreyhung-test" -> null
-       unique_id       = "104033735476450477916" -> null
    }

  # module.functions.module.cloud_function_gen2["get-gh-app-token"].google_storage_bucket_object.zip will be destroyed
  # (because module.functions.module.cloud_function_gen2["get-gh-app-token"] is not in configuration)
-   resource "google_storage_bucket_object" "zip" {
-       bucket              = "jeffreyhung-test-cloud-function-staging" -> null
-       content_type        = "application/zip" -> null
-       crc32c              = "JHDtsQ==" -> null
-       deletion_policy     = "DELETE" -> null
-       detect_md5hash      = "uKzNjBcIp6oItk9ORkUsOw==" -> null
-       event_based_hold    = false -> null
-       generation          = 1788372339084652 -> null
-       id                  = "jeffreyhung-test-cloud-function-staging-src-b8accd8c1708a7aa08b64f4e46452c3b.zip" -> null
-       md5hash             = "uKzNjBcIp6oItk9ORkUsOw==" -> null
-       md5hexhash          = "b8accd8c1708a7aa08b64f4e46452c3b" -> null
-       media_link          = "https://storage.googleapis.com/download/storage/v1/b/jeffreyhung-test-cloud-function-staging/o/src-b8accd8c1708a7aa08b64f4e46452c3b.zip?generation=1788372339084652&alt=media" -> null
-       metadata            = {
-           "owner"       = "team-security"
-           "terraformed" = "true"
        } -> null
-       name                = "src-b8accd8c1708a7aa08b64f4e46452c3b.zip" -> null
-       output_name         = "src-b8accd8c1708a7aa08b64f4e46452c3b.zip" -> null
-       self_link           = "https://www.googleapis.com/storage/v1/b/jeffreyhung-test-cloud-function-staging/o/src-b8accd8c1708a7aa08b64f4e46452c3b.zip" -> null
-       source              = "/tmp/get-gh-app-token.zip" -> null
-       storage_class       = "STANDARD" -> null
-       temporary_hold      = false -> null
#        (6 unchanged attributes hidden)
    }

  # module.functions.module.cronjob-gen2["example-gen2-cron"].google_cloud_run_service_iam_member.cj_gen2_cron_invoker will be destroyed
  # (because module.functions.module.cronjob-gen2["example-gen2-cron"] is not in configuration)
-   resource "google_cloud_run_service_iam_member" "cj_gen2_cron_invoker" {
-       etag     = "BwYgxaRHaoI=" -> null
-       id       = "v1/projects/jeffreyhung-test/locations/us-west1/services/example-gen2-cron/roles/run.invoker/serviceAccount:cj-example-gen2-cron@jeffreyhung-test.iam.gserviceaccount.com" -> null
-       location = "us-west1" -> null
-       member   = "serviceAccount:cj-example-gen2-cron@jeffreyhung-test.iam.gserviceaccount.com" -> null
-       project  = "jeffreyhung-test" -> null
-       role     = "roles/run.invoker" -> null
-       service  = "v1/projects/jeffreyhung-test/locations/us-west1/services/example-gen2-cron" -> null
    }

  # module.functions.module.cronjob-gen2["example-gen2-cron"].google_cloud_scheduler_job.cron_scheduler will be destroyed
  # (because module.functions.module.cronjob-gen2["example-gen2-cron"] is not in configuration)
-   resource "google_cloud_scheduler_job" "cron_scheduler" {
-       attempt_deadline = "320s" -> null
-       deletion_policy  = "DELETE" -> null
-       description      = "gen2 cloud function example" -> null
-       id               = "projects/jeffreyhung-test/locations/us-west1/jobs/example-gen2-cron" -> null
-       name             = "example-gen2-cron" -> null
-       paused           = false -> null
-       project          = "jeffreyhung-test" -> null
-       region           = "us-west1" -> null
-       schedule         = "0 * * * *" -> null
-       state            = "ENABLED" -> null
-       time_zone        = "America/New_York" -> null

-       http_target {
-           headers     = {} -> null
-           http_method = "GET" -> null
-           uri         = "https://us-west1-jeffreyhung-test.cloudfunctions.net/example-gen2-cron" -> null
#            (1 unchanged attribute hidden)

-           oidc_token {
-               audience              = "https://us-west1-jeffreyhung-test.cloudfunctions.net/example-gen2-cron" -> null
-               service_account_email = "cj-example-gen2-cron@jeffreyhung-test.iam.gserviceaccount.com" -> null
            }
        }
    }

  # module.functions.module.cronjob-gen2["example-gen2-cron"].google_cloudfunctions2_function_iam_member.cj_gen2_cron_invoker will be destroyed
  # (because module.functions.module.cronjob-gen2["example-gen2-cron"] is not in configuration)
-   resource "google_cloudfunctions2_function_iam_member" "cj_gen2_cron_invoker" {
-       cloud_function = "projects/jeffreyhung-test/locations/us-west1/functions/example-gen2-cron" -> null
-       etag           = "BwZaiO7Aygw=" -> null
-       id             = "projects/jeffreyhung-test/locations/us-west1/functions/example-gen2-cron/roles/cloudfunctions.invoker/serviceAccount:cj-example-gen2-cron@jeffreyhung-test.iam.gserviceaccount.com" -> null
-       location       = "us-west1" -> null
-       member         = "serviceAccount:cj-example-gen2-cron@jeffreyhung-test.iam.gserviceaccount.com" -> null
-       project        = "jeffreyhung-test" -> null
-       role           = "roles/cloudfunctions.invoker" -> null
    }

  # module.functions.module.cronjob-gen2["example-gen2-cron"].google_service_account.cronjob_sa will be destroyed
  # (because module.functions.module.cronjob-gen2["example-gen2-cron"] is not in configuration)
-   resource "google_service_account" "cronjob_sa" {
-       account_id      = "cj-example-gen2-cron" -> null
-       deletion_policy = "DELETE" -> null
-       description     = "Service account for example-gen2-cron, owned by team-security, managed by Terraform" -> null
-       disabled        = false -> null
-       display_name    = "CronJob Service Account for example-gen2-cron" -> null
-       email           = "cj-example-gen2-cron@jeffreyhung-test.iam.gserviceaccount.com" -> null
-       id              = "projects/jeffreyhung-test/serviceAccounts/cj-example-gen2-cron@jeffreyhung-test.iam.gserviceaccount.com" -> null
-       member          = "serviceAccount:cj-example-gen2-cron@jeffreyhung-test.iam.gserviceaccount.com" -> null
-       name            = "projects/jeffreyhung-test/serviceAccounts/cj-example-gen2-cron@jeffreyhung-test.iam.gserviceaccount.com" -> null
-       project         = "jeffreyhung-test" -> null
-       unique_id       = "109079883649630638593" -> null
    }

  # module.workflows.module.workflows["example-eventarc"].google_service_account.workflow_sa will be destroyed
  # (because module.workflows.module.workflows["example-eventarc"] is not in configuration)
-   resource "google_service_account" "workflow_sa" {
-       account_id      = "wf-example-eventarc" -> null
-       deletion_policy = "DELETE" -> null
-       description     = "Service account for example-eventarc, owned by team-security, managed by Terraform" -> null
-       disabled        = false -> null
-       display_name    = "Workflow Service Account for example-eventarc" -> null
-       email           = "wf-example-eventarc@jeffreyhung-test.iam.gserviceaccount.com" -> null
-       id              = "projects/jeffreyhung-test/serviceAccounts/wf-example-eventarc@jeffreyhung-test.iam.gserviceaccount.com" -> null
-       member          = "serviceAccount:wf-example-eventarc@jeffreyhung-test.iam.gserviceaccount.com" -> null
-       name            = "projects/jeffreyhung-test/serviceAccounts/wf-example-eventarc@jeffreyhung-test.iam.gserviceaccount.com" -> null
-       project         = "jeffreyhung-test" -> null
-       unique_id       = "113531995145961483452" -> null
    }

  # module.workflows.module.workflows["example-eventarc"].google_workflows_workflow.workflow will be destroyed
  # (because module.workflows.module.workflows["example-eventarc"] is not in configuration)
-   resource "google_workflows_workflow" "workflow" {
-       create_time             = "2025-01-30T22:29:16.501888137Z" -> null
-       deletion_policy         = "DELETE" -> null
-       deletion_protection     = true -> null
-       description             = "example workflow with eventarc" -> null
-       effective_labels        = {
-           "goog-terraform-provisioned" = "true"
-           "owner"                      = "team-security"
-           "terraformed"                = "true"
        } -> null
-       id                      = "projects/jeffreyhung-test/locations/us-west1/workflows/example-eventarc" -> null
-       labels                  = {
-           "owner"       = "team-security"
-           "terraformed" = "true"
        } -> null
-       name                    = "example-eventarc" -> null
-       project                 = "jeffreyhung-test" -> null
-       revision_id             = "000001-88d" -> null
-       service_account         = "projects/jeffreyhung-test/serviceAccounts/wf-example-eventarc@jeffreyhung-test.iam.gserviceaccount.com" -> null
-       source_contents         = <<-EOT
            main:
              steps:
                - example_gen2_cron:
                    call: http.post
                    args:
                      url: https://us-west1-jeffreyhung-test.cloudfunctions.net/example-gen2-cron
                      auth:
                        type: OIDC
                        audience: https://us-west1-jeffreyhung-test.cloudfunctions.net/example-gen2-cron
        EOT -> null
-       state                   = "ACTIVE" -> null
-       terraform_labels        = {
-           "goog-terraform-provisioned" = "true"
-           "owner"                      = "team-security"
-           "terraformed"                = "true"
        } -> null
-       update_time             = "2025-02-12T17:04:55.372682917Z" -> null
-       user_env_vars           = {} -> null
#        (3 unchanged attributes hidden)
    }

  # module.workflows.module.workflows["example1"].google_service_account.workflow_sa will be destroyed
  # (because module.workflows.module.workflows["example1"] is not in configuration)
-   resource "google_service_account" "workflow_sa" {
-       account_id      = "wf-example1" -> null
-       deletion_policy = "DELETE" -> null
-       description     = "Service account for example1, owned by team-security, managed by Terraform" -> null
-       disabled        = false -> null
-       display_name    = "Workflow Service Account for example1" -> null
-       email           = "wf-example1@jeffreyhung-test.iam.gserviceaccount.com" -> null
-       id              = "projects/jeffreyhung-test/serviceAccounts/wf-example1@jeffreyhung-test.iam.gserviceaccount.com" -> null
-       member          = "serviceAccount:wf-example1@jeffreyhung-test.iam.gserviceaccount.com" -> null
-       name            = "projects/jeffreyhung-test/serviceAccounts/wf-example1@jeffreyhung-test.iam.gserviceaccount.com" -> null
-       project         = "jeffreyhung-test" -> null
-       unique_id       = "111860599451351782149" -> null
    }

  # module.workflows.module.workflows["example1"].google_workflows_workflow.workflow will be destroyed
  # (because module.workflows.module.workflows["example1"] is not in configuration)
-   resource "google_workflows_workflow" "workflow" {
-       create_time             = "2025-01-28T22:57:34.911814537Z" -> null
-       deletion_policy         = "DELETE" -> null
-       deletion_protection     = true -> null
-       description             = "example workflow" -> null
-       effective_labels        = {
-           "goog-terraform-provisioned" = "true"
-           "owner"                      = "team-security"
-           "terraformed"                = "true"
        } -> null
-       id                      = "projects/jeffreyhung-test/locations/us-west1/workflows/example1" -> null
-       labels                  = {
-           "owner"       = "team-security"
-           "terraformed" = "true"
        } -> null
-       name                    = "example1" -> null
-       project                 = "jeffreyhung-test" -> null
-       revision_id             = "000001-2ab" -> null
-       service_account         = "projects/jeffreyhung-test/serviceAccounts/wf-example1@jeffreyhung-test.iam.gserviceaccount.com" -> null
-       source_contents         = <<-EOT
            main:
              steps:
                - example_gen2_cron:
                    call: http.post
                    args:
                      url: https://us-west1-jeffreyhung-test.cloudfunctions.net/example-gen2-cron
                      auth:
                        type: OIDC
                        audience: https://us-west1-jeffreyhung-test.cloudfunctions.net/example-gen2-cron
        EOT -> null
-       state                   = "ACTIVE" -> null
-       terraform_labels        = {
-           "goog-terraform-provisioned" = "true"
-           "owner"                      = "team-security"
-           "terraformed"                = "true"
        } -> null
-       update_time             = "2025-02-12T17:04:55.409684045Z" -> null
-       user_env_vars           = {} -> null
#        (3 unchanged attributes hidden)
    }

Plan: 1 to add, 2 to change, 24 to destroy.

📝 Plan generated in Terraform Plan #78

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants