Reputation: 1
I am working on an Angular application deployed on Firebase Hosting. I want to keep my sensitive API keys and tokens secure without exposing them in environment.ts, environment.prod.ts, etc files. I have already created pipeline in Gitlab for build and deploy stage, by hard coding the values the application gets build and deploy successfully but secrets, keys gets exposed in the JavaScript bundle when we inspect it.
I tried passing the variables through the CICD secrets/env variables but they get expose in the client side JavaScript bundle.
Upvotes: 0
Views: 38
Reputation: 1009
There are two options:
If you have access to some data on the frontend side, it's already outside your control.
Upvotes: 0