-
Notifications
You must be signed in to change notification settings - Fork 10
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
feat: add reverse proxy worker for newsletter signup #405
Conversation
Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
|
worker/fastly.toml
Outdated
|
||
[[local_server.secret_stores.services_secrets]] | ||
key = "newsletter_client_id" | ||
data = "gqn2wsm10glznu7m3vjpv3i3" |
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.
does having the client id and client secret out in the open cause an issue in terms of data security??
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.
Yes 🤦🏼 That wasn't intended!
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.
LGTM :)
0ddcddb
to
1283ec0
Compare
Includes: - changed base uri, and updated api key - updated form payload (+ country, - date) - request payload and headers updated - base uri is using the reverse proxy cdn setup Jira Issues: https://pethealthinc.atlassian.net/browse/PM-143 Related: #405 Test URLs: - Before: https://main--petplace--hlxsites.hlx.page/ - After: - https://feat-update-newsletter-api--petplace--hlxsites.hlx.live/ - https://feat-update-newsletter-api--petplace--hlxsites.hlx.live/?martech=off --------- Co-authored-by: Julien Ramboz <ramboz@users.noreply.github.com>
This adds the code for the reverse-proxy compute action that will run on the Fastly CDN and proxy the calls for the newsletter.