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

Signing API / Cloudinary signing #1101

Merged
merged 11 commits into from
Feb 2, 2024

Conversation

AlexanderGeere
Copy link
Contributor

What

Creates a new API for signing requests to third party services e.g cloudinary, s3, etc.
The signing API Initially will only support cloudinary.

Why

Signing requests and then letting the client make the call to the service will take some load off the backend as well
further decoupling some of these services from the backend.

How to test

Use this pull request along with the sign workspace on the bugs_testing branch.

express.js Dismissed Show dismissed Hide dismissed
express.js Dismissed Show dismissed Hide dismissed
Copy link

sonarcloud bot commented Jan 31, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link
Member

@dbauszus-glx dbauszus-glx left a comment

Choose a reason for hiding this comment

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

It's mostly there.

I removed the warning in the cloudinary entry module.

The warning will be added to the _entries module once the cloudinary module can be removed after testing a cloudinary plugin to replace the existing module.

For now the current method should work and the plugin should override the current methods when loaded.

I get a warning in regards to third party cookies. These come from the image src request after an image has been uploaded with a signed URL.

image

These cookies should be removed if no longer needed.

@AlexanderGeere
Copy link
Contributor Author

@dbauszus-glx in to replicating the warning I see that res.cloudinary.com should not set a cookie (see cloudinary/cloudinary_npm#308 (comment)), which is the url for the the image request. Being logged in to cloudinary in a separate tab is what causes the warning.

@dbauszus-glx dbauszus-glx added the Feature New feature requests or changes to the behaviour or look of existing application features. label Feb 2, 2024
@dbauszus-glx dbauszus-glx self-requested a review February 2, 2024 11:53
Copy link
Member

@dbauszus-glx dbauszus-glx left a comment

Choose a reason for hiding this comment

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

This is working now for me. I just had to ensure to clear the cache and remove old cloudinary cookies from browser.

@dbauszus-glx dbauszus-glx merged commit abeb53d into GEOLYTIX:main Feb 2, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature requests or changes to the behaviour or look of existing application features.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants