Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ship with an OSGi configuration by default which allows IMS AEM Administrator Product Profile users to use the Groovy Console #55

Open
kwin opened this issue Jun 13, 2024 · 2 comments

Comments

@kwin
Copy link
Contributor

kwin commented Jun 13, 2024

As by default only the admin user has the rights to execute the scripts in the Groovy Console (https://github.com/orbinson/aem-groovy-console?tab=readme-ov-file#osgi-configuration) but the admin user is not usable in AEMaaCS, the default configuration should also grant access to the administrators group or the according IMS Administrator Profile Name (accessible via environment variable $[env:aemCloudAdministrators;default=administrators]).

Please add an according OSGi configuration to https://github.com/orbinson/aem-groovy-console/tree/main/ui.config/src/main/content/jcr_root/apps/groovyconsole-config/osgiconfig/config. As the interpolation feature is available on Cloud only this requires a dedicated package for cloud.

@kwin
Copy link
Contributor Author

kwin commented Jun 13, 2024

I attached an example OSGi configuration which should achieve this (for AEMaaCS):
be.orbinson.aem.groovy.console.configuration.impl.DefaultConfigurationService.cfg.json

@kwin kwin changed the title Ship with an OSGi configuration by default which allows IMS Administrator users to use the Groovy Console Ship with an OSGi configuration by default which allows IMS AEM Administrator Product Profile users to use the Groovy Console Jun 13, 2024
@kwin
Copy link
Contributor Author

kwin commented Jun 13, 2024

FTR: You can see the same environment variable is being used internally by AEM for its org.apache.jackrabbit.oak.security.authorization.AuthorizationConfigurationImpl configuration PID (exposed via Developer Console -> Status Dump -> Configurations)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant