Organizing run modes based Osgi Config files | Community
Skip to main content
Level 2
June 16, 2023
Solved

Organizing run modes based Osgi Config files

  • June 16, 2023
  • 2 replies
  • 633 views

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

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Rohit_Utreja

@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-aem-as-cloud-service-1e9145d78c2c

 

I hope it helps!

 

 

2 replies

aanchal-sikka
Community Advisor
Community Advisor
June 16, 2023
Aanchal Sikka
Rohit_Utreja
Community Advisor
Rohit_UtrejaCommunity AdvisorAccepted solution
Community Advisor
June 16, 2023

@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-aem-as-cloud-service-1e9145d78c2c

 

I hope it helps!