This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import CryptoJS from "crypto-js"; | |
| function encrypt(text: string) { | |
| const secret = process.env.CRYPTO_SECRET?.toString(); | |
| if (!secret) { | |
| throw Error("CRYPTO_SECRET not set"); | |
| } | |
| const ciphertext = CryptoJS.AES.encrypt(text, secret).toString(); | |
| return ciphertext; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| annotations: | |
| qbec.io/component: console | |
| labels: | |
| qbec.io/application: openshift-console | |
| qbec.io/environment: stage | |
| name: openshift-console |