Skip to content

Commit

Permalink
Expand Apps Engine's environment variable allowed list
Browse files Browse the repository at this point in the history
  • Loading branch information
chnguyen authored and chnguyen committed Dec 6, 2021
1 parent ef94c08 commit 652b16e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/apps/server/bridges/environmental.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class AppEnvironmentalVariableBridge extends EnvironmentalVariableBridge
protected async isReadable(envVarName: string, appId: string): Promise<boolean> {
this.orch.debugLog(`The App ${ appId } is checking if the environmental variable is readable ${ envVarName }.`);

return this.allowed.includes(envVarName.toUpperCase());
return this.allowed.includes(envVarName.toUpperCase()) || envVarName.toUpperCase().startsWith(`RC_APPS_${ appId }_`);
}

protected async isSet(envVarName: string, appId: string): Promise<boolean> {
Expand Down

0 comments on commit 652b16e

Please sign in to comment.