Unee-T-INS / frontend

Meteor front end
https://case.dev.ins.unee-t.com/
GNU Affero General Public License v3.0
0 stars 1 forks source link

The variable CLOUDINARY_URL is problematic #15

Open franck-boullier opened 4 years ago

franck-boullier commented 4 years ago

The variable CLOUDINARY_URL is necessary to make sure we can upload and transform attachments.

We have several problems with this variable.

The name of the variable we use in our code is misleading:

In the AWS parameter store and in the code in this repo, we use the name CLOUDINARY_URL for a URL that looks like https://api.cloudinary.com/v1_1/[CLOUDINARY_CLOUD_NAME]/image/upload

In the Cloudinary account the variable CLOUDINARY_URL looks like: cloudinary://[API_KEY]:[API_SECRET]@[CLOUD_NAME]

This makes it very confusing as people will likely assume that the value for the variable CLOUDINARY_URL in the AWS parameter store should be the same as the value for the variable CLOUDINARY_URL in the Cloudinary account (which is wrong).

Solution:

Replace the name of the variable CLOUDINARY_URL in the AWS store and in our code with a better name CLOUDINARY_API_ENDPOINT. We need to edit the following files:

Bugzilla-customization repo:

frontend repo:

The value is hardcoded in some places in the code:

frontend repo:

franck-boullier commented 4 years ago

PR #17 fixed some of the issues.

To do before closing this issue: