GoogleCloudPlatform / GoogleCloudPlatform/functions-framework-nodejs

Question: How can one do OIDC token validating using event signature?

Open
#705 0 comments 0 reactions 0 assignees View on GitHub
feature request P2
Dominant language
TypeScript
Stars
1.4k
Forks
181
PR merge metrics
No merged PRs in 30d

Description

As per title, if I create a cloudevent handler with signature of event, I do not have access to the headers to validate any OIDC token that I want to validate.

My use-case is for cross-team cross-project PubSub communication so having the OIDC token validation is a nice layer of security, it's easy to do with the http endpoint but I wanted to check if there is a way to do it via Cloudevent so I can also take advantage of the unmarshalling?

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the CloudEvent handler signature and comparing it with the HTTP endpoint path described in the issue, focusing on access to request headers. Determine whether OIDC token validation can be supported while retaining CloudEvent unmarshalling; the issue does not identify files or tests, so completion criteria require clarification.

Written by the indexing model from the issue text.

Assessment

Tech stack
google-cloud, node.js, typescript
Domain
authentication, backend, cloud
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.