PluginImpl#start adds HudsonMonitoringFilter to the PluginServletFilter list, which should be happening before PLUGINS_STARTED, so it doesn't wait for items to load etc.
On Wed, Feb 8, 2023 at 2:47 PM Michael Carter <[email protected]> wrote: > "jenkins is starting up" is the screen I'm talking about. > https://plugins.jenkins.io/monitoring/ is available before the init level > of COMPLETED is reached so you can troubleshoot things as jenkins is > starting up. Analyzed their code and couldn't quite figure out what > allows them to do it. > > They do have stuff in there about the crumb and security so maybe that's > what is allowing it. > > On Wednesday, February 8, 2023 at 2:02:38 AM UTC-5 [email protected] > wrote: > >> Can you share code? I would assume a root action with no auth wouldn't >> care about ... wait when you say splash screen, do you mean the "jenkins is >> starting up" or the "welcome wizard"? I would assume a root action wouldn't >> care about the welcome wizard, but the starting up screen my only guess is >> you have to have some sort of init hook that changes the order of things. >> >> >> https://github.com/jenkinsci/prometheus-plugin/blob/master/src/main/java/org/jenkinsci/plugins/prometheus/rest/PrometheusAction.java >> says unprotecetedrootaction, which probably means it doesn't wait for >> auth/acl to startup >> >> But these are just guesses >> >> On Tue, Feb 7, 2023 at 11:47 AM Michael Carter <[email protected]> >> wrote: >> >>> Short version I've got a custom prometheus stats page for my plugin. >>> But I want to make it available early. How does the /monitoring plugin >>> skip the starting splash page? Want to do the same thing? >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Jenkins Developers" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/jenkinsci-dev/dc9615d5-8840-4c30-b3f2-da956124d281n%40googlegroups.com >>> <https://groups.google.com/d/msgid/jenkinsci-dev/dc9615d5-8840-4c30-b3f2-da956124d281n%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- > You received this message because you are subscribed to the Google Groups > "Jenkins Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-dev/213135ec-fc02-406a-a203-6a3cfadb401cn%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-dev/213135ec-fc02-406a-a203-6a3cfadb401cn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAMo7Pt%2BcbS03o1cuervZ7G%2BTjm0QL744AgcoNYVaWMjLp2uk2w%40mail.gmail.com.
