Configuration-as-code-plugin: Role Strategy: Error for exporting authorizationStrategy

Created on 18 Sep 2018  路  22Comments  路  Source: jenkinsci/configuration-as-code-plugin

Hello

I have the error in exported file.

System:
Matrix Authorization Strategy Plugin 2.3
Jenkins 2.141
Windows 7 Enterprise Service Pack 1

Error:
authorizationStrategy: "FAILED TO EXPORT hudson.model.Hudson#authorizationStrategy:\
\ \nio.jenkins.plugins.casc.ConfiguratorException: Cannot find configurator for\
\ type class com.michelin.cio.hudson.plugins.rolestrategy.RoleBasedAuthorizationStrategy\r\
\n\tat io.jenkins.plugins.casc.impl.DefaultConfiguratorRegistry$1.load(DefaultConfiguratorRegistry.java:97)\r\
\n\tat io.jenkins.plugins.casc.impl.DefaultConfiguratorRegistry$1.load(DefaultConfiguratorRegistry.java:93)\r\
\n\tat com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3568)\r\
\n\tat com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2350)\r\
\n\tat com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2313)\r\
\n\tat com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2228)\r\n\
\tat com.google.common.cache.LocalCache.get(LocalCache.java:3965)\r\n\tat com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3969)\r\
\n\tat com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4829)\r\
\n\tat io.jenkins.plugins.casc.impl.DefaultConfiguratorRegistry.lookupOrFail(DefaultConfiguratorRegistry.java:70)\r\
\n\tat io.jenkins.plugins.casc.ConfigurationContext.lookupOrFail(ConfigurationContext.java:74)\r\
\n\tat io.jenkins.plugins.casc.impl.configurators.HeteroDescribableConfigurator.describe(HeteroDescribableConfigurator.java:154)\r\
\n\tat io.jenkins.plugins.casc.impl.configurators.HeteroDescribableConfigurator.describe(HeteroDescribableConfigurator.java:43)\r\
\n\tat io.jenkins.plugins.casc.Attribute.describe(Attribute.java:188)\r\n\tat\
\ io.jenkins.plugins.casc.core.JenkinsConfigurator.describe(JenkinsConfigurator.java:70)\r\
\n\tat io.jenkins.plugins.casc.core.JenkinsConfigurator.describe(JenkinsConfigurator.java:25)\r\
\n\tat io.jenkins.plugins.casc.ConfigurationAsCode.export(ConfigurationAsCode.java:406)\r\
\n\tat io.jenkins.plugins.casc.ConfigurationAsCode.doExport(ConfigurationAsCode.java:396)\r\
\n\tat java.lang.invoke.MethodHandle.invokeWithArguments(Unknown Source)\r\n\t\
at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343)\r\n\t\
at org.kohsuke.stapler.interceptor.RequirePOST$Processor.invoke(RequirePOST.java:77)\r\
\n\tat org.kohsuke.stapler.PreInvokeInterceptedFunction.invoke(PreInvokeInterceptedFunction.java:26)\r\
\n\tat org.kohsuke.stapler.Function.bindAndInvoke(Function.java:184)\r\n\tat org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:117)\r\
\n\tat org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:129)\r\n\tat\
\ org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)\r\
\n\tat org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:734)\r\n\tat org.kohsuke.stapler.Stapler.invoke(Stapler.java:864)\r\
\n\tat org.kohsuke.stapler.MetaClass$10.dispatch(MetaClass.java:374)\r\n\tat org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:734)\r\
\n\tat org.kohsuke.stapler.Stapler.invoke(Stapler.java:864)\r\n\tat org.kohsuke.stapler.Stapler.invoke(Stapler.java:668)\r\
\n\tat org.kohsuke.stapler.Stapler.service(Stapler.java:238)\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:790)\r\
\n\tat org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:865)\r\
\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1655)\r\
\n\tat hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)\r\
\n\tat hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:59)\r\
\n\tat hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)\r\
\n\tat hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:157)\r\
\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)\r\
\n\tat hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:99)\r\n\tat\
\ org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)\r\
\n\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)\r\
\n\tat hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)\r\
\n\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\r\
\n\tat jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)\r\
\n\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\r\
\n\tat org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)\r\
\n\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\r\
\n\tat org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)\r\
\n\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\r\
\n\tat org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)\r\
\n\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\r\
\n\tat jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93)\r\
\n\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\r\
\n\tat org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)\r\
\n\tat hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)\r\
\n\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\r\
\n\tat hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:90)\r\
\n\tat hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)\r\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)\r\
\n\tat org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)\r\
\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)\r\
\n\tat hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)\r\
\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)\r\
\n\tat org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)\r\
\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)\r\
\n\tat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533)\r\
\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)\r\
\n\tat org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)\r\
\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)\r\
\n\tat org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)\r\
\n\tat org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)\r\
\n\tat org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)\r\
\n\tat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1317)\r\
\n\tat org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)\r\
\n\tat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)\r\
\n\tat org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)\r\
\n\tat org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)\r\
\n\tat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1219)\r\
\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)\r\
\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)\r\
\n\tat org.eclipse.jetty.server.Server.handle(Server.java:531)\r\n\tat org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:352)\r\
\n\tat org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260)\r\
\n\tat org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:281)\r\
\n\tat org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102)\r\n\t\
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118)\r\n\t\
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)\r\
\n\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)\r\
\n\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168)\r\
\n\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126)\r\
\n\tat org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)\r\
\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:762)\r\
\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:680)\r\
\n\tat java.lang.Thread.run(Unknown Source)\r\n"

plugin-compatibility

Most helpful comment

Now I have

Error:
authorizationStrategy: "FAILED TO EXPORT hudson.model.Hudson#authorizationStrategy:\
\ \nio.jenkins.plugins.casc.ConfiguratorException: Can't read attribute 'roles'\
\ from com.michelin.cio.hudson.plugins.rolestrategy.RoleBasedAuthorizationStrategy@3f96e2c9\r\
\n\tat io.jenkins.plugins.casc.Attribute._getValue(Attribute.java:246)\r\n\tat\
\ io.jenkins.plugins.casc.Attribute.getValue(Attribute.java:166)\r\n\tat io.jenkins.plugins.casc.Attribute.equals(Attribute.java:198)\r\
\n\tat io.jenkins.plugins.casc.BaseConfigurator.compare(BaseConfigurator.java:367)\r\
\n\tat io.jenkins.plugins.casc.support.rolestrategy.RoleBasedAuthorizationStrategyConfigurator.describe(RoleBasedAuthorizationStrategyConfigurator.java:55)\r\
\n\tat io.jenkins.plugins.casc.support.rolestrategy.RoleBasedAuthorizationStrategyConfigurator.describe(RoleBasedAuthorizationStrategyConfigurator.java:25)\r\
\n\tat io.jenkins.plugins.casc.impl.configurators.HeteroDescribableConfigurator.describe(HeteroDescribableConfigurator.java:155)\r\
\n\tat io.jenkins.plugins.casc.impl.configurators.HeteroDescribableConfigurator.describe(HeteroDescribableConfigurator.java:43)\r\
\n\tat io.jenkins.plugins.casc.Attribute.describe(Attribute.java:188)\r\n\tat\
\ io.jenkins.plugins.casc.core.JenkinsConfigurator.describe(JenkinsConfigurator.java:70)\r\
\n\tat io.jenkins.plugins.casc.core.JenkinsConfigurator.describe(JenkinsConfigurator.java:25)\r\
\n\tat io.jenkins.plugins.casc.ConfigurationAsCode.export(ConfigurationAsCode.java:406)\r\
\n\tat io.jenkins.plugins.casc.ConfigurationAsCode.doExport(ConfigurationAsCode.java:396)\r\
\n\tat java.lang.invoke.MethodHandle.invokeWithArguments(Unknown Source)\r\n\t\
at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343)\r\n\t\
at org.kohsuke.stapler.interceptor.RequirePOST$Processor.invoke(RequirePOST.java:77)\r\
\n\tat org.kohsuke.stapler.PreInvokeInterceptedFunction.invoke(PreInvokeInterceptedFunction.java:26)\r\
\n\tat org.kohsuke.stapler.Function.bindAndInvoke(Function.java:184)\r\n\tat org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:117)\r\
\n\tat org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:129)\r\n\tat\
\ org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)\r\
\n\tat org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:734)\r\n\tat org.kohsuke.stapler.Stapler.invoke(Stapler.java:864)\r\
\n\tat org.kohsuke.stapler.MetaClass$10.dispatch(MetaClass.java:374)\r\n\tat org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:734)\r\
\n\tat org.kohsuke.stapler.Stapler.invoke(Stapler.java:864)\r\n\tat org.kohsuke.stapler.Stapler.invoke(Stapler.java:668)\r\
\n\tat org.kohsuke.stapler.Stapler.service(Stapler.java:238)\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:790)\r\
\n\tat org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:865)\r\
\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1655)\r\
\n\tat hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)\r\
\n\tat hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:59)\r\
\n\tat hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)\r\
\n\tat hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:157)\r\
\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)\r\
\n\tat hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:99)\r\n\tat\
\ org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)\r\
\n\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)\r\
\n\tat hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)\r\
\n\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\r\
\n\tat jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)\r\
\n\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\r\
\n\tat org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)\r\
\n\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\r\
\n\tat org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)\r\
\n\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\r\
\n\tat org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)\r\
\n\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\r\
\n\tat jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93)\r\
\n\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\r\
\n\tat org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)\r\
\n\tat hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)\r\
\n\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\r\
\n\tat hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:90)\r\
\n\tat hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)\r\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)\r\
\n\tat org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)\r\
\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)\r\
\n\tat hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)\r\
\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)\r\
\n\tat org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)\r\
\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)\r\
\n\tat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533)\r\
\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)\r\
\n\tat org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)\r\
\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)\r\
\n\tat org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)\r\
\n\tat org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)\r\
\n\tat org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)\r\
\n\tat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1317)\r\
\n\tat org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)\r\
\n\tat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)\r\
\n\tat org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)\r\
\n\tat org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)\r\
\n\tat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1219)\r\
\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)\r\
\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)\r\
\n\tat org.eclipse.jetty.server.Server.handle(Server.java:531)\r\n\tat org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:352)\r\
\n\tat org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260)\r\
\n\tat org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:281)\r\
\n\tat org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102)\r\n\t\
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118)\r\n\t\
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)\r\
\n\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)\r\
\n\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168)\r\
\n\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126)\r\
\n\tat org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)\r\
\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:762)\r\
\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:680)\r\
\n\tat java.lang.Thread.run(Unknown Source)\r\n"

All 22 comments

@tomaszwojciechowski You need the support plugin: https://plugins.jenkins.io/configuration-as-code-support

Now I have

Error:
authorizationStrategy: "FAILED TO EXPORT hudson.model.Hudson#authorizationStrategy:\
\ \nio.jenkins.plugins.casc.ConfiguratorException: Can't read attribute 'roles'\
\ from com.michelin.cio.hudson.plugins.rolestrategy.RoleBasedAuthorizationStrategy@3f96e2c9\r\
\n\tat io.jenkins.plugins.casc.Attribute._getValue(Attribute.java:246)\r\n\tat\
\ io.jenkins.plugins.casc.Attribute.getValue(Attribute.java:166)\r\n\tat io.jenkins.plugins.casc.Attribute.equals(Attribute.java:198)\r\
\n\tat io.jenkins.plugins.casc.BaseConfigurator.compare(BaseConfigurator.java:367)\r\
\n\tat io.jenkins.plugins.casc.support.rolestrategy.RoleBasedAuthorizationStrategyConfigurator.describe(RoleBasedAuthorizationStrategyConfigurator.java:55)\r\
\n\tat io.jenkins.plugins.casc.support.rolestrategy.RoleBasedAuthorizationStrategyConfigurator.describe(RoleBasedAuthorizationStrategyConfigurator.java:25)\r\
\n\tat io.jenkins.plugins.casc.impl.configurators.HeteroDescribableConfigurator.describe(HeteroDescribableConfigurator.java:155)\r\
\n\tat io.jenkins.plugins.casc.impl.configurators.HeteroDescribableConfigurator.describe(HeteroDescribableConfigurator.java:43)\r\
\n\tat io.jenkins.plugins.casc.Attribute.describe(Attribute.java:188)\r\n\tat\
\ io.jenkins.plugins.casc.core.JenkinsConfigurator.describe(JenkinsConfigurator.java:70)\r\
\n\tat io.jenkins.plugins.casc.core.JenkinsConfigurator.describe(JenkinsConfigurator.java:25)\r\
\n\tat io.jenkins.plugins.casc.ConfigurationAsCode.export(ConfigurationAsCode.java:406)\r\
\n\tat io.jenkins.plugins.casc.ConfigurationAsCode.doExport(ConfigurationAsCode.java:396)\r\
\n\tat java.lang.invoke.MethodHandle.invokeWithArguments(Unknown Source)\r\n\t\
at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343)\r\n\t\
at org.kohsuke.stapler.interceptor.RequirePOST$Processor.invoke(RequirePOST.java:77)\r\
\n\tat org.kohsuke.stapler.PreInvokeInterceptedFunction.invoke(PreInvokeInterceptedFunction.java:26)\r\
\n\tat org.kohsuke.stapler.Function.bindAndInvoke(Function.java:184)\r\n\tat org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:117)\r\
\n\tat org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:129)\r\n\tat\
\ org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)\r\
\n\tat org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:734)\r\n\tat org.kohsuke.stapler.Stapler.invoke(Stapler.java:864)\r\
\n\tat org.kohsuke.stapler.MetaClass$10.dispatch(MetaClass.java:374)\r\n\tat org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:734)\r\
\n\tat org.kohsuke.stapler.Stapler.invoke(Stapler.java:864)\r\n\tat org.kohsuke.stapler.Stapler.invoke(Stapler.java:668)\r\
\n\tat org.kohsuke.stapler.Stapler.service(Stapler.java:238)\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:790)\r\
\n\tat org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:865)\r\
\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1655)\r\
\n\tat hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)\r\
\n\tat hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:59)\r\
\n\tat hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)\r\
\n\tat hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:157)\r\
\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)\r\
\n\tat hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:99)\r\n\tat\
\ org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)\r\
\n\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)\r\
\n\tat hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)\r\
\n\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\r\
\n\tat jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)\r\
\n\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\r\
\n\tat org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)\r\
\n\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\r\
\n\tat org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)\r\
\n\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\r\
\n\tat org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)\r\
\n\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\r\
\n\tat jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93)\r\
\n\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\r\
\n\tat org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)\r\
\n\tat hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)\r\
\n\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\r\
\n\tat hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:90)\r\
\n\tat hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)\r\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)\r\
\n\tat org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)\r\
\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)\r\
\n\tat hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)\r\
\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)\r\
\n\tat org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)\r\
\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)\r\
\n\tat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533)\r\
\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)\r\
\n\tat org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)\r\
\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)\r\
\n\tat org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)\r\
\n\tat org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)\r\
\n\tat org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)\r\
\n\tat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1317)\r\
\n\tat org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)\r\
\n\tat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)\r\
\n\tat org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)\r\
\n\tat org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)\r\
\n\tat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1219)\r\
\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)\r\
\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)\r\
\n\tat org.eclipse.jetty.server.Server.handle(Server.java:531)\r\n\tat org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:352)\r\
\n\tat org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260)\r\
\n\tat org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:281)\r\
\n\tat org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102)\r\n\t\
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118)\r\n\t\
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)\r\
\n\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)\r\
\n\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168)\r\
\n\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126)\r\
\n\tat org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)\r\
\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:762)\r\
\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:680)\r\
\n\tat java.lang.Thread.run(Unknown Source)\r\n"

@tomaszpiekarczyk You're listing matrix auth plugin, but this error is related to the https://github.com/jenkinsci/role-strategy-plugin what version of that plugin do you have installed?

@MadsNielsen I use 2.9.0 version of Role Strategy Plugin.

Getting a similar error:

Running Jenkins 2.131.3 war
configuration-as-code:1.0
configuration-as-code-support:1.0
active-directory:2.8 | Active Directory plugin
role-strategy:2.9.0 | Role-based Authorization Strategy
credentials-binding:1.16 | Credentials Binding Plugin

Access Control
Security Realm
(o) Active Directory
Authorization
(o) Role-Based Strategy

Role matrix is currently input/managed using a structure shown below, inspired by:
https://issues.jenkins-ci.org/browse/JENKINS-23709

roles {
GLOBAL {
admin {
permissions = [
]
members = [
]
}
developer {
permissions = [
]
members = [
]
}
}
PROJECT {
developer {
pattern = "^(A|B|C|D|E|F|G|H|I|J|K|L|M|N|O|P|Q|R|S|T|U|V|W|X|Y|Z).*"
permissions = [
]
members = [
]
}
}
}
authorizationStrategy: "FAILED TO EXPORT hudson.model.Hudson#authorizationStrategy:\
\ \nio.jenkins.plugins.casc.ConfiguratorException: Can't read attribute 'roles'\
\ from com.michelin.cio.hudson.plugins.rolestrategy.RoleBasedAuthorizationStrategy@414b8e6f\r\
\n\tat io.jenkins.plugins.casc.Attribute._getValue(Attribute.java:246)\r\n\tat\
\ io.jenkins.plugins.casc.Attribute.getValue(Attribute.java:166)\r\n\tat io.jenkins.plugins.casc.Attribute.equals(Attribute.java:198)\r\
\n\tat io.jenkins.plugins.casc.BaseConfigurator.compare(BaseConfigurator.java:367)\r\
\n\tat io.jenkins.plugins.casc.support.rolestrategy.RoleBasedAuthorizationStrategyConfigurator.describe(RoleBasedAuthorizationStrategyConfigurator.java:55)\r\
\n\tat io.jenkins.plugins.casc.support.rolestrategy.RoleBasedAuthorizationStrategyConfigurator.describe(RoleBasedAuthorizationStrategyConfigurator.java:25)\r\
\n\tat io.jenkins.plugins.casc.impl.configurators.HeteroDescribableConfigurator.describe(HeteroDescribableConfigurator.java:155)\r\
\n\tat io.jenkins.plugins.casc.impl.configurators.HeteroDescribableConfigurator.describe(HeteroDescribableConfigurator.java:43)\r\
\n\tat io.jenkins.plugins.casc.Attribute.describe(Attribute.java:188)\r\n\tat\
\ io.jenkins.plugins.casc.core.JenkinsConfigurator.describe(JenkinsConfigurator.java:70)\r\
\n\tat io.jenkins.plugins.casc.core.JenkinsConfigurator.describe(JenkinsConfigurator.java:25)\r\
\n\tat io.jenkins.plugins.casc.ConfigurationAsCode.export(ConfigurationAsCode.java:406)\r\
\n\tat io.jenkins.plugins.casc.ConfigurationAsCode.doExport(ConfigurationAsCode.java:396)\r\
\n\tat java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)\r\
\n\tat org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343)\r\
\n\tat org.kohsuke.stapler.interceptor.RequirePOST$Processor.invoke(RequirePOST.java:77)\r\
\n\tat org.kohsuke.stapler.PreInvokeInterceptedFunction.invoke(PreInvokeInterceptedFunction.java:26)\r\
\n\tat org.kohsuke.stapler.Function.bindAndInvoke(Function.java:184)\r\n\tat org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:117)\r\
\n\tat org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:129)\r\n\tat\
\ org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)\r\
\n\tat org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:734)\r\n\tat org.kohsuke.stapler.Stapler.invoke(Stapler.java:864)\r\
\n\tat org.kohsuke.stapler.MetaClass$10.dispatch(MetaClass.java:374)\r\n\tat org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:734)\r\
\n\tat org.kohsuke.stapler.Stapler.invoke(Stapler.java:864)\r\n\tat org.kohsuke.stapler.Stapler.invoke(Stapler.java:668)\r\
\n\tat org.kohsuke.stapler.Stapler.service(Stapler.java:238)\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:790)\r\
\n\tat org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:860)\r\
\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1650)\r\
\n\tat hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)\r\
\n\tat hudson.security.HudsonPrivateSecurityRealm$5.doFilter(HudsonPrivateSecurityRealm.java:831)\r\
\n\tat hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)\r\
\n\tat jenkins.install.SetupWizard$1.doFilter(SetupWizard.java:625)\r\n\tat hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)\r\
\n\tat org.jenkinsci.plugins.ssegateway.Endpoint$SSEListenChannelFilter.doFilter(Endpoint.java:243)\r\
\n\tat hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)\r\
\n\tat io.jenkins.blueocean.ResourceCacheControl.doFilter(ResourceCacheControl.java:134)\r\
\n\tat hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)\r\
\n\tat io.jenkins.blueocean.auth.jwt.impl.JwtAuthenticationFilter.doFilter(JwtAuthenticationFilter.java:61)\r\
\n\tat hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)\r\
\n\tat net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:239)\r\
\n\tat net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:215)\r\
\n\tat net.bull.javamelody.PluginMonitoringFilter.doFilter(PluginMonitoringFilter.java:88)\r\
\n\tat org.jvnet.hudson.plugins.monitoring.HudsonMonitoringFilter.doFilter(HudsonMonitoringFilter.java:114)\r\
\n\tat hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)\r\
\n\tat hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:59)\r\
\n\tat hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)\r\
\n\tat hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:157)\r\
\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)\r\
\n\tat hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:99)\r\n\tat\
\ org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)\r\
\n\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)\r\
\n\tat hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)\r\
\n\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\r\
\n\tat jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)\r\
\n\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\r\
\n\tat org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)\r\
\n\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\r\
\n\tat org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)\r\
\n\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\r\
\n\tat org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)\r\
\n\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\r\
\n\tat jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93)\r\
\n\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\r\
\n\tat org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)\r\
\n\tat hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)\r\
\n\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\r\
\n\tat hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:90)\r\
\n\tat hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)\r\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)\r\
\n\tat org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)\r\
\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)\r\
\n\tat hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)\r\
\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)\r\
\n\tat org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)\r\
\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)\r\
\n\tat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533)\r\
\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)\r\
\n\tat org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)\r\
\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)\r\
\n\tat org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:190)\r\
\n\tat org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)\r\
\n\tat org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188)\r\
\n\tat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1253)\r\
\n\tat org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168)\r\
\n\tat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)\r\
\n\tat org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)\r\
\n\tat org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166)\r\
\n\tat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1155)\r\
\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)\r\
\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)\r\
\n\tat org.eclipse.jetty.server.Server.handle(Server.java:530)\r\n\tat org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:347)\r\
\n\tat org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:256)\r\
\n\tat org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)\r\
\n\tat org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102)\r\n\t\
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)\r\n\t\
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:247)\r\
\n\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:140)\r\
\n\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)\r\
\n\tat org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:382)\r\
\n\tat winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)\r\
\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\r\
\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\r\
\n\tat java.lang.Thread.run(Thread.java:748)\r\n"

I have same error.

Jenkins version LTS (2.138.1)
Role-based Authorization Strategy plugin version is 2.9.0 (latest)

I use LDAP and role-based strategy.

Here's jenkins.yaml

authorizationStrategy: "FAILED TO EXPORT hudson.model.Hudson#authorizationStrategy:\
\ \nio.jenkins.plugins.casc.ConfiguratorException: Can't read attribute 'roles'\
\ from com.michelin.cio.hudson.plugins.rolestrategy.RoleBasedAuthorizationStrategy@2b2404f8\n\
\tat io.jenkins.plugins.casc.Attribute._getValue(Attribute.java:246)\n\tat io.jenkins.plugins.casc.Attribute.getValue(Attribute.java:166)\n\
\tat io.jenkins.plugins.casc.Attribute.equals(Attribute.java:198)\n\tat io.jenkins.plugins.casc.BaseConfigurator.compare(BaseConfigurator.java:367)\n\
\tat io.jenkins.plugins.casc.support.rolestrategy.RoleBasedAuthorizationStrategyConfigurator.describe(RoleBasedAuthorizationStrategyConfigurator.java:55)\n\
\tat io.jenkins.plugins.casc.support.rolestrategy.RoleBasedAuthorizationStrategyConfigurator.describe(RoleBasedAuthorizationStrategyConfigurator.java:25)\n\
\tat io.jenkins.plugins.casc.impl.configurators.HeteroDescribableConfigurator.describe(HeteroDescribableConfigurator.java:155)\n\
\tat io.jenkins.plugins.casc.impl.configurators.HeteroDescribableConfigurator.describe(HeteroDescribableConfigurator.java:43)\n\
\tat io.jenkins.plugins.casc.Attribute.describe(Attribute.java:188)\n\tat io.jenkins.plugins.casc.core.JenkinsConfigurator.describe(JenkinsConfigurator.java:70)\n\
\tat io.jenkins.plugins.casc.core.JenkinsConfigurator.describe(JenkinsConfigurator.java:25)\n\
\tat io.jenkins.plugins.casc.ConfigurationAsCode.export(ConfigurationAsCode.java:406)\n\
\tat io.jenkins.plugins.casc.ConfigurationAsCode.doExport(ConfigurationAsCode.java:396)\n\
\tat java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)\n\
\tat org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343)\n\t\
at org.kohsuke.stapler.interceptor.RequirePOST$Processor.invoke(RequirePOST.java:77)\n\
\tat org.kohsuke.stapler.PreInvokeInterceptedFunction.invoke(PreInvokeInterceptedFunction.java:26)\n\
\tat org.kohsuke.stapler.Function.bindAndInvoke(Function.java:184)\n\tat org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:117)\n\
\tat org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:129)\n\tat org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)\n\
\tat org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:734)\n\tat org.kohsuke.stapler.Stapler.invoke(Stapler.java:864)\n\
\tat org.kohsuke.stapler.MetaClass$10.dispatch(MetaClass.java:374)\n\tat org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:734)\n\
\tat org.kohsuke.stapler.Stapler.invoke(Stapler.java:864)\n\tat org.kohsuke.stapler.Stapler.invoke(Stapler.java:668)\n\
\tat org.kohsuke.stapler.Stapler.service(Stapler.java:238)\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:790)\n\
\tat org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:865)\n\t\
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1655)\n\
\tat hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)\n\
\tat org.jenkinsci.plugins.ssegateway.Endpoint$SSEListenChannelFilter.doFilter(Endpoint.java:243)\n\
\tat hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)\n\
\tat io.jenkins.blueocean.ResourceCacheControl.doFilter(ResourceCacheControl.java:134)\n\
\tat hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)\n\
\tat io.jenkins.blueocean.auth.jwt.impl.JwtAuthenticationFilter.doFilter(JwtAuthenticationFilter.java:61)\n\
\tat hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)\n\
\tat hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:157)\n\t\
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)\n\
\tat hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:99)\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)\n\
\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)\n\
\tat hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)\n\
\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\n\
\tat jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)\n\
\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\n\
\tat org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)\n\
\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\n\
\tat org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)\n\
\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\n\
\tat org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)\n\
\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\n\
\tat jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93)\n\
\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\n\
\tat org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)\n\
\tat hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)\n\
\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\n\
\tat hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:90)\n\
\tat hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)\n\
\tat org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)\n\
\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)\n\
\tat hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)\n\
\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)\n\
\tat org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)\n\
\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)\n\
\tat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533)\n\
\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)\n\
\tat org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)\n\
\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)\n\
\tat org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)\n\
\tat org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)\n\
\tat org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)\n\
\tat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1317)\n\
\tat org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)\n\
\tat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)\n\
\tat org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)\n\
\tat org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)\n\
\tat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1219)\n\
\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)\n\
\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)\n\
\tat org.eclipse.jetty.server.Server.handle(Server.java:531)\n\tat org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:352)\n\
\tat org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260)\n\
\tat org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:281)\n\
\tat org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102)\n\tat org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118)\n\
\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)\n\
\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)\n\
\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168)\n\
\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126)\n\
\tat org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)\n\
\tat winstone.BoundedExecutorService.lambda$scheduleNext$0(BoundedExecutorService.java:80)\n\
\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\n\
\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\n\
\tat java.lang.Thread.run(Thread.java:748)\n"

I have the same problem, but with project-based matrix configuration.

I'm using:

Jenkinx 2.138.2
Configuration as Code: 1.3

plugins:
  sites:
  - id: "default"
    url: "https://updates.jenkins.io/update-center.json"
jenkins:
  agentProtocols:
  - "JNLP4-connect"
  - "Ping"
  authorizationStrategy: "FAILED TO EXPORT hudson.model.Hudson#authorizationStrategy:\
    \ \nio.jenkins.plugins.casc.ConfiguratorException: Cannot find configurator for\
    \ type class hudson.security.ProjectMatrixAuthorizationStrategy\n\tat io.jenkins.plugins.casc.impl.DefaultConfiguratorRegistry$1.load(DefaultConfiguratorRegistry.java:97)\n\
    \tat io.jenkins.plugins.casc.impl.DefaultConfiguratorRegistry$1.load(DefaultConfiguratorRegistry.java:93)\n\
    \tat com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3568)\n\
    \tat com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2350)\n\
    \tat com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2313)\n\
    \tat com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2228)\n\t\
    at com.google.common.cache.LocalCache.get(LocalCache.java:3965)\n\tat com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3969)\n\
    \tat com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4829)\n\
    \tat io.jenkins.plugins.casc.impl.DefaultConfiguratorRegistry.lookupOrFail(DefaultConfiguratorRegistry.java:70)\n\
    \tat io.jenkins.plugins.casc.ConfigurationContext.lookupOrFail(ConfigurationContext.java:71)\n\
    \tat io.jenkins.plugins.casc.impl.configurators.HeteroDescribableConfigurator.describe(HeteroDescribableConfigurator.java:154)\n\
    \tat io.jenkins.plugins.casc.impl.configurators.HeteroDescribableConfigurator.describe(HeteroDescribableConfigurator.java:43)\n\
    \tat io.jenkins.plugins.casc.Attribute.describe(Attribute.java:196)\n\tat io.jenkins.plugins.casc.core.JenkinsConfigurator.describe(JenkinsConfigurator.java:83)\n\
    \tat io.jenkins.plugins.casc.core.JenkinsConfigurator.describe(JenkinsConfigurator.java:30)\n\
    \tat io.jenkins.plugins.casc.ConfigurationAsCode.export(ConfigurationAsCode.java:411)\n\
    \tat io.jenkins.plugins.casc.ConfigurationAsCode.doExport(ConfigurationAsCode.java:401)\n\
    \tat java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)\n\
    \tat org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343)\n\t\
    at org.kohsuke.stapler.interceptor.RequirePOST$Processor.invoke(RequirePOST.java:77)\n\
    \tat org.kohsuke.stapler.PreInvokeInterceptedFunction.invoke(PreInvokeInterceptedFunction.java:26)\n\
    \tat org.kohsuke.stapler.Function.bindAndInvoke(Function.java:184)\n\tat org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:117)\n\
    \tat org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:129)\n\tat org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)\n\
    \tat org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:734)\n\tat org.kohsuke.stapler.Stapler.invoke(Stapler.java:864)\n\
    \tat org.kohsuke.stapler.MetaClass$10.dispatch(MetaClass.java:374)\n\tat org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:734)\n\
    \tat org.kohsuke.stapler.Stapler.invoke(Stapler.java:864)\n\tat org.kohsuke.stapler.Stapler.invoke(Stapler.java:668)\n\
    \tat org.kohsuke.stapler.Stapler.service(Stapler.java:238)\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:790)\n\
    \tat org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:865)\n\t\
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1655)\n\
    \tat hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)\n\
    \tat hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:157)\n\t\
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)\n\
    \tat hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:99)\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)\n\
    \tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)\n\
    \tat hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)\n\
    \tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\n\
    \tat jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)\n\
    \tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\n\
    \tat org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)\n\
    \tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\n\
    \tat org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)\n\
    \tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\n\
    \tat org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)\n\
    \tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\n\
    \tat jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93)\n\
    \tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\n\
    \tat org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)\n\
    \tat hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)\n\
    \tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\n\
    \tat hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:90)\n\
    \tat hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)\n\
    \tat org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)\n\
    \tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)\n\
    \tat hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)\n\
    \tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)\n\
    \tat org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)\n\
    \tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)\n\
    \tat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533)\n\
    \tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)\n\
    \tat org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)\n\
    \tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)\n\
    \tat org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)\n\
    \tat org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)\n\
    \tat org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)\n\
    \tat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1317)\n\
    \tat org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)\n\
    \tat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)\n\
    \tat org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)\n\
    \tat org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)\n\
    \tat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1219)\n\
    \tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)\n\
    \tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)\n\
    \tat org.eclipse.jetty.server.Server.handle(Server.java:531)\n\tat org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:352)\n\
    \tat org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260)\n\
    \tat org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:281)\n\
    \tat org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102)\n\tat org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118)\n\
    \tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)\n\
    \tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)\n\
    \tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168)\n\
    \tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126)\n\
    \tat org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)\n\
    \tat org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:762)\n\
    \tat org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:680)\n\
    \tat java.lang.Thread.run(Thread.java:748)\n"
  crumbIssuer:
    standard:
      excludeClientIPFromCrumb: false

Any update on this issue please let us know as I am facing the same problem
Jenkins version - 2.150.1
Configuration as Code Plugin - 1.4
Configuration as Code Support Plugin - 1.4

authorizationStrategy: "FAILED TO EXPORT hudson.model.Hudson#authorizationStrategy:\ \ \nio.jenkins.plugins.casc.ConfiguratorException: Can't read attribute 'roles'\ \ from com.michelin.cio.hudson.plugins.rolestrategy.RoleBasedAuthorizationStrategy@65a75836\n\ \tat io.jenkins.plugins.casc.Attribute._getValue(Attribute.java:252)\n\tat io.jenkins.plugins.casc.Attribute.getValue(Attribute.java:174)\n\ \tat io.jenkins.plugins.casc.Attribute.equals(Attribute.java:204)\n\tat io.jenkins.plugins.casc.BaseConfigurator.compare(BaseConfigurator.java:386)\n\ \tat io.jenkins.plugins.casc.support.rolestrategy.RoleBasedAuthorizationStrategyConfigurator.describe(RoleBasedAuthorizationStrategyConfigurator.java:55)\n\ \tat io.jenkins.plugins.casc.support.rolestrategy.RoleBasedAuthorizationStrategyConfigurator.describe(RoleBasedAuthorizationStrategyConfigurator.java:25)\n\ \tat io.jenkins.plugins.casc.impl.configurators.HeteroDescribableConfigurator.describe(HeteroDescribableConfigurator.java:161)\n\ \tat io.jenkins.plugins.casc.impl.configurators.HeteroDescribableConfigurator.describe(HeteroDescribableConfigurator.java:43)\n\ \tat io.jenkins.plugins.casc.Attribute.describe(Attribute.java:196)\n\tat io.jenkins.plugins.casc.core.JenkinsConfigurator.describe(JenkinsConfigurator.java:83)\n\ \tat io.jenkins.plugins.casc.core.JenkinsConfigurator.describe(JenkinsConfigurator.java:30)\n\ \tat io.jenkins.plugins.casc.ConfigurationAsCode.export(ConfigurationAsCode.java:411)\n\ \tat io.jenkins.plugins.casc.ConfigurationAsCode.doExport(ConfigurationAsCode.java:401)\n\ \tat java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)\n\ \tat org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396)\n\t\ at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:408)\n\t\ at org.kohsuke.stapler.interceptor.RequirePOST$Processor.invoke(RequirePOST.java:77)\n\ \tat org.kohsuke.stapler.PreInvokeInterceptedFunction.invoke(PreInvokeInterceptedFunction.java:26)\n\ \tat org.kohsuke.stapler.Function.bindAndInvoke(Function.java:212)\n\tat org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:145)\n\ \tat org.kohsuke.stapler.MetaClass$11.doDispatch(MetaClass.java:537)\n\tat org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)\n\ \tat org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:739)\n\tat org.kohsuke.stapler.Stapler.invoke(Stapler.java:870)\n\ \tat org.kohsuke.stapler.MetaClass$9.dispatch(MetaClass.java:458)\n\tat org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:739)\n\ \tat org.kohsuke.stapler.Stapler.invoke(Stapler.java:870)\n\tat org.kohsuke.stapler.Stapler.invoke(Stapler.java:668)\n\ \tat org.kohsuke.stapler.Stapler.service(Stapler.java:238)\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:790)\n\ \tat org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:865)\n\t\ at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1655)\n\ \tat hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)\n\ \tat net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:239)\n\ \tat net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:215)\n\ \tat net.bull.javamelody.PluginMonitoringFilter.doFilter(PluginMonitoringFilter.java:88)\n\ \tat org.jvnet.hudson.plugins.monitoring.HudsonMonitoringFilter.doFilter(HudsonMonitoringFilter.java:114)\n\ \tat hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)\n\ \tat hudson.plugins.audit_trail.AuditTrailFilter.doFilter(AuditTrailFilter.java:92)\n\ \tat hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)\n\ \tat jenkins.telemetry.impl.UserLanguages$AcceptLanguageFilter.doFilter(UserLanguages.java:128)\n\ \tat hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)\n\ \tat hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:157)\n\t\ at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)\n\ \tat hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:99)\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)\n\ \tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)\n\ \tat hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)\n\ \tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\n\ \tat jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)\n\ \tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\n\ \tat org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)\n\ \tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\n\ \tat org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)\n\ \tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\n\ \tat org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)\n\ \tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\n\ \tat jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93)\n\ \tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\n\ \tat org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)\n\ \tat hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)\n\ \tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\n\ \tat hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:90)\n\ \tat hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)\n\ \tat org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)\n\ \tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)\n\ \tat hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)\n\ \tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)\n\ \tat org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)\n\ \tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)\n\ \tat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533)\n\ \tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)\n\ \tat org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)\n\ \tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)\n\ \tat org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)\n\ \tat org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)\n\ \tat org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)\n\ \tat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1340)\n\ \tat org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)\n\ \tat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)\n\ \tat org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)\n\ \tat org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)\n\ \tat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1242)\n\ \tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)\n\ \tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)\n\ \tat org.eclipse.jetty.server.Server.handle(Server.java:503)\n\tat org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:364)\n\ \tat org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260)\n\ \tat org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305)\n\ \tat org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)\n\tat org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118)\n\ \tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)\n\ \tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)\n\ \tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168)\n\ \tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126)\n\ \tat org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)\n\ \tat org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:765)\n\ \tat org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:683)\n\ \tat java.lang.Thread.run(Thread.java:748)\n"

I have the same Can't read attribute 'roles'\ issue

Jenkins: 2.159

Plugins
configuration-as-code:1.4
configuration-as-code-support:1.4
saml:1.1.2
role-strategy:2.9.0

I would gladly provide time and code to fix it but I'm not proficient with how casc works and what needs to be adapted.

Note: I just noticed that the plugin works. The export is the only thing not working

The issue is tracked in Jira for the plugin itself JENKINS-53931.

@tomaszwojciechowski are you ok with closing the issue and keeping JENKINS-53931?

Same issue with CasC 1.5 by the way.

I'm guessing this is still in the backlog and being looked at? Trying to convince a client to use this plugin, and roles are one of the requirements.

Roles are supported if you build the yaml by hand:
https://github.com/jenkinsci/configuration-as-code-plugin/blob/master/demos/role-strategy-auth/role-strategy-auth.yaml

Exporting config from a running jenkins doesn't work for role strategy apparently...

this is fixed in matrix-auth 2.4

@timja I don't understand what you mean by "this is fixed". I am using matrix auth 2.4.2 and am still having this issue. Also the link you posted above leads to a 404.

I linked to master and the yaml file must have been deleted.
https://github.com/jenkinsci/configuration-as-code-plugin/tree/master/demos/role-strategy-auth

This issue is about matrix-auth @devblueray.
Someone hijacked it to discuss another issue about role strategy which doesn't export correctly currently.

@timja Thanks for the reply. However, I am a bit confused still because the initial message contains the exact error I'm getting:

authorizationStrategy: "FAILED TO EXPORT hudson.model.Hudson#authorizationStrategy: \ \nio.jenkins.plugins.casc.ConfiguratorException: Cannot find configurator for \ type class com.michelin.cio.hudson.plugins.rolestrategy.RoleBasedAuthorizationStrategy\r

Several messages in this thread with that error and only one from jordimolesblanco with a message about the matrix-auth plugin. So if anything, it was him who hijacked the thread and made it about matrix-auth and not the other way around. I'm not trying to argue about the issue, I just think that it's been closed under false assumptions. The issue that jordimolesblanco posted about was probably fixed in matrix-auth 2.4 but the original issue that this thread was created for has yet to be resolved and probably shouldn't be closed. What am I missing?

ah I see, he didn't mention the role plugin in the description just matrix-auth.
This should be resolved as part of:
https://github.com/jenkinsci/role-strategy-plugin/pull/60
It needs some fixing up though. Hopefully @oleg-nenashev or @casz can finish it off, otherwise I may get to it

Basically the role strategy plugin doesn't support the export feature of jcasc currently.

If you follow the demo it should work

Please open a new issue or come discuss on gitter if you can't figure out how to configure it by hand

Reopening as I have a PR for fixing this, it'll get closed on merge

Thank you @timja.

hello,
I config Role-based Authorization Strategy plugin with :Configure Global security->Jenkins own user database and for Authorization Role-based Strategy.
In Global role I have:internalUser <->externalUser.
for external users I managed to granulate up to:
the external user sees only his organization and its jobs
but I can't listen(hide) to" People" and can see all the users in my organization.
how can I solve the problem?
thank you in advance!

Was this page helpful?
0 / 5 - 0 ratings