Skip to main content
Level 1
Sep 8, 2026 8:52 PM UTC
Solved

Adding OSGi Configurations in AMS

We are looking to manage OSGi configurations in the AMS environment instead of storing sensitive values in the codebase. In Adobe Cloud Manager, there is an option to manage environment-specific secrets and configurations. Is there a similar approach available in AMS, and if so, how can we manage these configurations securely?

    Raja_Reddy
    Raja_ReddyAccepted solution
    Community Advisor
    Sep 10, 2026 4:33 PM UTC

    Hi ​@ayetukur 
    AMS does not provide an equivalent to Cloud Manager Environment Variables/Secrets available in AEM as a Cloud Service. Typically, OSGi configurations are deployed as part of the code package, while sensitive values should be managed using AEM's encrypted configuration properties or maintained directly at the environment level by AMS administrators. For enterprise use cases, integrating with an external secrets management solution such as Azure Key Vault or HashiCorp Vault is also a common approach to avoid storing secrets in source control.
    https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/implementing/deploying/configuring-osgi 

    5 replies

    Jineet_Vora
    Adobe Champion, Community Advisor, UG Leader
    Adobe Champion, Community Advisor, UG Leader
    Sep 8, 2026 9:33 PM UTC

    ​@ayetukur - Unfortunately, the Cloud Manager in AMS doesn’t provide you “environment variables” like AEMaaCS Cloud Manager where you can define secrets securely. It only provides “pipeline variables” where you can define secrets but that secret is for build and not for your running AEM instance: https://developer.adobe.com/experience-cloud/cloud-manager/reference/api#operation/getEnvironmentVariables

    Using the traditional Crypto Support in AEM AMS is one option where you encrypt the secret on each environment and then store it in OSGi configs https://experienceleague.adobe.com/en/docs/experience-manager-65/content/security/encryption-support-for-configuration-properties

    Another secure way is to store the secrets in AWS Secrets Manager and if your AMS infra is on AWS as well then you can setup cross account resource policy between the two accounts and you can then request the secret from Adobe hosted EC2 author/publisher. We use something very similar and is an approved/secured way of fetching the secrets in AEM.

    Translate
    Magicr
    Level 6
    Sep 11, 2026 1:27 PM UTC

    ​@ayetukur If you want to use the Crypto Support, there is a very important thing you should know: The base of entcrypted Strings in AMS are two files. These can you find under following path: “crx-quickstart/launchpad/felix/xxx/data”. When you have to migrate your instance you need a copy of those for your new instance, else the new instance will decrypt into a wrong result.

    xxx:

    “bundle25” (AEM 6.5 or older)

    “bundle35” (AEM 6.5 lts)

    Translate
    AMANATH_ULLAH
    Community Advisor
    Community Advisor
    Sep 10, 2026 2:48 AM UTC

    ​@ayetukur 
    There is no such option in AMS, however you can use crypto support in AEM 
    You can also use other options such as Azure Key Vault, AWS Secrets Manager, HashiCorp Vault

    Translate
    Amanath Ullah
    Raja_Reddy
    Community Advisor
    Raja_ReddyCommunity AdvisorAccepted solution
    Community Advisor
    Sep 10, 2026 4:33 PM UTC

    Hi ​@ayetukur 
    AMS does not provide an equivalent to Cloud Manager Environment Variables/Secrets available in AEM as a Cloud Service. Typically, OSGi configurations are deployed as part of the code package, while sensitive values should be managed using AEM's encrypted configuration properties or maintained directly at the environment level by AMS administrators. For enterprise use cases, integrating with an external secrets management solution such as Azure Key Vault or HashiCorp Vault is also a common approach to avoid storing secrets in source control.
    https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/implementing/deploying/configuring-osgi 

    Translate
    Level 2
    Oct 27, 2026 7:45 AM UTC

    Worth noting for anyone reading this now: AEM 6.5 support on Adobe Managed Services ended on 31 Aug 2026, so if a cloud move is coming, design the secrets approach for that target. On AEMaaCS this maps to Cloud Manager secret environment variables referenced as $[secret:NAME] in OSGi configs, so keeping secret names consistent today makes the later switch a config change, not a code change.

    Translate