cloud-resume-api icon indicating copy to clipboard operation
cloud-resume-api copied to clipboard

rohit1101/gcp-submission

Open rohit1101 opened this issue 7 months ago • 0 comments

Name: Rohit S

Repo URL: Repo URL

Resume API URL: resume-api

Summary:

image

  • The way I implemented the solution for this challenge is by setting up an HTTP public GCP Cloud function using node.js which will fetch the data from Firestore
  • We have to create a service account with very minimal permissions to make Cloud Function communicate with Cloud Firestore DB; the following are the permissions to accomplish the task:
Cloud Functions Admin
Cloud Run Invoker
Firebase Admin
  • Make sure you provide only read-only-access for the Firestore DB to avoid public write access
rules_version = '2';
  service cloud.firestore {
  match /databases/{database}/documents {
    match /{document=**} {
      allow read: if true;
      allow write: if false;
    }
  }
}
  • Users can access the Cloud Function with the functions URL: get-my-resume
  • Use this schema for customising your resume.

rohit1101 avatar Jul 31 '24 12:07 rohit1101