This is the exact issue im facing when trying to deploy ida-keygen
{â@timestampâ:â2024-07-30T10:32:06.327Zâ,â@versionâ:â1â,âmessageâ:âsessionId - - - Fetching Key Policy for keyPolicyName(Cache): IDA_VCI_EXCHANGEâ,âlogger_nameâ:âio.mosip.kernel.keymanagerservice.helper.KeymanagerDBHelperâ,âthread_nameâ:âmainâ,âlevelâ:âINFOâ,âlevel_valueâ:20000,âappNameâ:âkeys-generatorâ}
{â@timestampâ:â2024-07-30T10:32:06.329Zâ,â@versionâ:â1â,âmessageâ:âsessionId - keyPolicy - Optional.empty - Key Policy not found for this application Id. Key/CSR generation not allowed.â,âlogger_nameâ:âio.mosip.kernel.keymanagerservice.helper.KeymanagerDBHelperâ,âthread_nameâ:âmainâ,âlevelâ:âERRORâ,âlevel_valueâ:40000,âappNameâ:âkeys-generatorâ}
{â@timestampâ:â2024-07-30T10:32:06.338Zâ,â@versionâ:â1â,âmessageâ:â\n\nError starting ApplicationContext. To display the conditions report re-run your application with âdebugâ enabled.â,âlogger_nameâ:âorg.springframework.boot.autoconfigure.logging.ConditionEvaluationReportLoggingListenerâ,âthread_nameâ:âmainâ,âlevelâ:âINFOâ,âlevel_valueâ:20000,âappNameâ:âkeys-generatorâ}
{â@timestampâ:â2024-07-30T10:32:06.348Zâ,â@versionâ:â1â,âmessageâ:âApplication run failedâ,âlogger_nameâ:âorg.springframework.boot.SpringApplicationâ,âthread_nameâ:âmainâ,âlevelâ:âERRORâ,âlevel_valueâ:40000,âstack_traceâ:âjava.lang.IllegalStateException: Failed to execute CommandLineRunner\n\tat org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:800)\n\tat org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:781)\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:335)\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:1255)\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:1243)\n\tat io.mosip.kernel.keygenerator.KeysGeneratorApplication.main(KeysGeneratorApplication.java:23)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:566)\n\tat org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)\n\tat org.springframework.boot.loader.Launcher.launch(Launcher.java:87)\n\tat org.springframework.boot.loader.Launcher.launch(Launcher.java:50)\n\tat org.springframework.boot.loader.PropertiesLauncher.main(PropertiesLauncher.java:593)\nCaused by: io.mosip.kernel.keymanagerservice.exception.InvalidApplicationIdException: KER-KMS-002 â ApplicationId not found in Key Policy. Key/CSR generation not allowed.\n\tat io.mosip.kernel.keymanagerservice.helper.KeymanagerDBHelper.getKeyPolicy(KeymanagerDBHelper.java:257)\n\tat io.mosip.kernel.keymanagerservice.service.impl.KeymanagerServiceImpl.generateMasterKey(KeymanagerServiceImpl.java:488)\n\tat io.mosip.kernel.keymanagerservice.service.impl.KeymanagerServiceImpl$$FastClassBySpringCGLIB$$37c188ac.invoke()\n\tat org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)\n\tat org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:746)\n\tat org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n\tat org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:294)\n\tat org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:98)\n\tat org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n\tat org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688)\n\tat io.mosip.kernel.keymanagerservice.service.impl.KeymanagerServiceImpl$$EnhancerBySpringCGLIB$$2569ef23.generateMasterKey()\n\tat io.mosip.kernel.keygenerator.generator.KeysGenerator.generateMasterKey(KeysGenerator.java:195)\n\tat io.mosip.kernel.keygenerator.generator.KeysGenerator.lambda$generateKeys$0(KeysGenerator.java:120)\n\tat java.base/java.util.ArrayList.forEach(ArrayList.java:1541)\n\tat io.mosip.kernel.keygenerator.generator.KeysGenerator.generateKeys(KeysGenerator.java:100)\n\tat io.mosip.kernel.keygenerator.KeysGeneratorApplication.run(KeysGeneratorApplication.java:31)\n\tat org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:797)\n\t⌠13 common frames omitted\nâ,âappNameâ:âkeys-generatorâ}
{â@timestampâ:â2024-07-30T10:32:06.350Zâ,â@versionâ:â1â,âmessageâ:âClosing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@1040be71: startup date [Tue Jul 30 10:31:52 UTC 2024]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@5b239d7dâ,âlogger_nameâ:âorg.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContextâ,âthread_nameâ:âmainâ,âlevelâ:âINFOâ,âlevel_valueâ:20000,âappNameâ:âkeys-generatorâ}
{â@timestampâ:â2024-07-30T10:32:06.354Zâ,â@versionâ:â1â,âmessageâ:âUnregistering JMX-exposed beans on shutdownâ,âlogger_nameâ:âorg.springframework.jmx.export.annotation.AnnotationMBeanExporterâ,âthread_nameâ:âmainâ,âlevelâ:âINFOâ,âlevel_valueâ:20000,âappNameâ:âkeys-generatorâ}
{â@timestampâ:â2024-07-30T10:32:06.355Zâ,â@versionâ:â1â,âmessageâ:âUnregistering JMX-exposed beansâ,âlogger_nameâ:âorg.springframework.jmx.export.annotation.AnnotationMBeanExporterâ,âthread_nameâ:âmainâ,âlevelâ:âINFOâ,âlevel_valueâ:20000,âappNameâ:âkeys-generatorâ}
{â@timestampâ:â2024-07-30T10:32:06.360Zâ,â@versionâ:â1â,âmessageâ:âClosing JPA EntityManagerFactory for persistence unit âhibernateââ,âlogger_nameâ:âorg.springframework.orm.jpa.LocalContainerEntityManagerFactoryBeanâ,âthread_nameâ:âmainâ,âlevelâ:âINFOâ,âlevel_valueâ:20000,âappNameâ:âkeys-generatorâ}
{â@timestampâ:â2024-07-30T10:32:06.362Zâ,â@versionâ:â1â,âmessageâ:âHikariPool-1 - Shutdown initiatedâŚâ,âlogger_nameâ:âcom.zaxxer.hikari.HikariDataSourceâ,âthread_nameâ:âmainâ,âlevelâ:âINFOâ,âlevel_valueâ:20000,âappNameâ:âkeys-generatorâ}
{â@timestampâ:â2024-07-30T10:32:06.365Zâ,â@versionâ:â1â,âmessageâ:âHikariPool-1 - Shutdown completed.â,âlogger_nameâ:âcom.zaxxer.hikari.HikariDataSourceâ,âthread_nameâ:âmainâ,âlevelâ:âINFOâ,âlevel_valueâ:20000,âappNameâ:âkeys-generatorâ}