Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Organizing run modes based Osgi Config files

Avatar

Level 2

Hi Folks, 

 

I have a situation where I have multiple run mode based OSGi config files(for example), stored in Github repo. 

 

Config.dev.author

  - File 1

  - File 2

  - File3

 

Config.dev.publish

  - File 4

  - File 5

  - File 6

 

Since these configs contains secrets, I cannot have that as a part of my package in Github. Is there a way I can remove these files from Github and organize it in a different way?

 

Thanks

Tanmay

 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@tanmay_singh 

 

you can use environment variables in case of AEMaaCS.

 

secrets can be saved as well and the config file will something as mentioned below.

{
“myTestTitle” : “$[env:MY_TEST_TITLE]”,
“myTestPassword”: “$[secret:MY_TEST_PASSWORD]”
}

 

Reference URL: https://medium.com/slalom-technology/how-to-use-environment-variables-in-adobe-experience-manager-ae...

 

I hope it helps!

 

 

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

@tanmay_singh 

 

you can use environment variables in case of AEMaaCS.

 

secrets can be saved as well and the config file will something as mentioned below.

{
“myTestTitle” : “$[env:MY_TEST_TITLE]”,
“myTestPassword”: “$[secret:MY_TEST_PASSWORD]”
}

 

Reference URL: https://medium.com/slalom-technology/how-to-use-environment-variables-in-adobe-experience-manager-ae...

 

I hope it helps!