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

don't always require IAP when deploying to GCP #531

Merged
merged 2 commits into from
Oct 22, 2024
Merged

Conversation

Pete-Y-CS
Copy link
Contributor

No description provided.

@@ -17,7 +17,9 @@ let expectedAudience = `/projects/${process.env.PROJECT_NUMBER}/apps/${process.e

let app = express();

app.use(checkIap);
if(process.env.USE_IAP === "true") {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'd be safer to flip this and check for != false. If something gets messed up with env variables, we always want to default to using IAP

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great shout. Will do.

@Pete-Y-CS Pete-Y-CS merged commit 0e45e4f into main Oct 22, 2024
2 checks passed
@Pete-Y-CS Pete-Y-CS deleted the dont-require-IAP branch October 22, 2024 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants