Hi,
I'm currently busy with adding JWT support to Piranha, and I noticed that PublicKeyAsPEMTest adds microprofile-config.properties to a WAR's META-INF, which is not an officially supported location, is it?
Running the test prints this which makes it clear:
WebArchive: PublicKeyAsPEMTest.war:
/META-INF/
/META-INF/MPJWTTESTVERSION
/META-INF/microprofile-config.properties
/WEB-INF/
/WEB-INF/classes/
/WEB-INF/classes/publicKey.pem
/WEB-INF/classes/org/
/WEB-INF/classes/org/eclipse/
/WEB-INF/classes/org/eclipse/microprofile/
/WEB-INF/classes/org/eclipse/microprofile/jwt/
/WEB-INF/classes/org/eclipse/microprofile/jwt/tck/
/WEB-INF/classes/org/eclipse/microprofile/jwt/tck/config/
/WEB-INF/classes/org/eclipse/microprofile/jwt/tck/config/PublicKeyEndpoint.class
/WEB-INF/classes/org/eclipse/microprofile/jwt/tck/config/SimpleTokenUtils.class
/WEB-INF/classes/org/eclipse/microprofile/jwt/tck/container/
/WEB-INF/classes/org/eclipse/microprofile/jwt/tck/container/jaxrs/
/WEB-INF/classes/org/eclipse/microprofile/jwt/tck/container/jaxrs/TCKApplication.class
/WEB-INF/beans.xml
I somehow missed this last time around when I was looking at the test. Am I missing something here, or is this just wrong?
Things like these should be optional at the impl level and not prescribed by random specs.
Ondro
--
You received this message because you are subscribed to the Google Groups "Eclipse MicroProfile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to microprofile...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/microprofile/2f620c5b-752a-42dd-895d-f47ac17b43ee%40googlegroups.com.
It is a not a bug and this test code has been around for a while.To be honest I don't see anything wrong with the dedicated specs supporting more locations beyond those which are known at the lower MP Config level.That said, perhaps there is a time to add this to the MP Config as one of the officially recognized locations ?Cheers, Sergey
On Fri, Dec 13, 2019 at 10:23 AM Arjan Tijms <arjan...@gmail.com> wrote:
Hi,--Indeed, we saw the same in OpenAPI.In this case however the spec doesn't say anything about it, but the TCK tests just put it there. My guess for now is that it's just a bug, and the test code should have used addResource() instead of addAsManifestResource.Scot?
On Friday, December 13, 2019 at 8:56:14 AM UTC+1, Ondro Mihályi wrote:The same thing happened in OpenAPI, which specified an additional location for config properties. This is a little bit bit eeky and confusing that a spec not related to config specifies an additional config source. And here we see it again. Not a good pattern IMHO.Things like these should be optional at the impl level and not prescribed by random specs.
Ondro
You received this message because you are subscribed to the Google Groups "Eclipse MicroProfile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to microprofile+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/microprofile/2f620c5b-752a-42dd-895d-f47ac17b43ee%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Eclipse MicroProfile" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/microprofile/nm7Ph0XK_UU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to microprofile+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/microprofile/CAMsYBfXWLeJcLQgsyVw5xUL55WPcZBGxhytC6PguBhdvifkh%3Dg%40mail.gmail.com.
Hi,I think it might be a bug, if not it’s slightly worrying.The code has been around since 1.1/1.1.1. That test wasn’t in 1.0 at all.The problem is I was implementing and certifying MP JWT. I used SmalRye for MP config. It, of course, didn’t picked up that file from war/meta-inf.There isn’t any spec rule anywhere that says it should. The MP JWT spec doesn’t state this either.
It’s just the TCK depending on a non-specified and therefore non-portable feature.
On Friday, December 13, 2019, Sergey Beryozkin <sbia...@redhat.com> wrote:
It is a not a bug and this test code has been around for a while.To be honest I don't see anything wrong with the dedicated specs supporting more locations beyond those which are known at the lower MP Config level.That said, perhaps there is a time to add this to the MP Config as one of the officially recognized locations ?Cheers, Sergey
On Fri, Dec 13, 2019 at 10:23 AM Arjan Tijms <arjan...@gmail.com> wrote:
Hi,--Indeed, we saw the same in OpenAPI.In this case however the spec doesn't say anything about it, but the TCK tests just put it there. My guess for now is that it's just a bug, and the test code should have used addResource() instead of addAsManifestResource.Scot?
On Friday, December 13, 2019 at 8:56:14 AM UTC+1, Ondro Mihályi wrote:The same thing happened in OpenAPI, which specified an additional location for config properties. This is a little bit bit eeky and confusing that a spec not related to config specifies an additional config source. And here we see it again. Not a good pattern IMHO.Things like these should be optional at the impl level and not prescribed by random specs.
Ondro
You received this message because you are subscribed to the Google Groups "Eclipse MicroProfile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to microprofile...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/microprofile/2f620c5b-752a-42dd-895d-f47ac17b43ee%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Eclipse MicroProfile" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/microprofile/nm7Ph0XK_UU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to microprofile...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/microprofile/CAMsYBfXWLeJcLQgsyVw5xUL55WPcZBGxhytC6PguBhdvifkh%3Dg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Eclipse MicroProfile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to microprofile...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/microprofile/CAE%3D-AhC8cQzdLha2BAnFvXDXDvYimTTTvCVS7gQBcbeXP3RamA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/microprofile/CAMsYBfV83QJSxNGbH0e9Dd9r9DrHZchnSNbEijxpa1Hqigmn1Q%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/microprofile/CAJ9fJk4-dwN%3Du9QOa5G6j7%2BiRXs0kMdfvarpfGZUafLSm9cc1g%40mail.gmail.com.
No, should not be a problem IMHO. What would be of concern to me if the specs were restrained only by those locations which were introduced in MP Config few years ago.
You are right there should've been more text support around it but it is not there, yet all the implementations claiming a compliance with MP JWT 1.1.1 do support this source :-).
Rather than looking at it as a 'bug' I'd consider viewing as an opportunity to add an explicit recommendation to MP Config
To unsubscribe from this group and stop receiving emails from it, send an email to microp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/microprofile/2f620c5b-752a-42dd-895d-f47ac17b43ee%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Eclipse MicroProfile" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/microprofile/nm7Ph0XK_UU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to microp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/microprofile/CAMsYBfXWLeJcLQgsyVw5xUL55WPcZBGxhytC6PguBhdvifkh%3Dg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Eclipse MicroProfile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to microp...@googlegroups.com.
Another example, let's say we start supporting the injection of the JWKs obtained from HTTPS. Would we need to try to update MP Config to recognize HTTPS URI as a source ? But it would not make sense at the lower level MP Config...
Cheers, Sergey
To unsubscribe from this group and stop receiving emails from it, send an email to microp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/microprofile/2f620c5b-752a-42dd-895d-f47ac17b43ee%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Eclipse MicroProfile" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/microprofile/nm7Ph0XK_UU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to microp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/microprofile/CAMsYBfXWLeJcLQgsyVw5xUL55WPcZBGxhytC6PguBhdvifkh%3Dg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Eclipse MicroProfile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to microp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/microprofile/CAE%3D-AhC8cQzdLha2BAnFvXDXDvYimTTTvCVS7gQBcbeXP3RamA%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Eclipse MicroProfile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to microp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/microprofile/CAMsYBfV83QJSxNGbH0e9Dd9r9DrHZchnSNbEijxpa1Hqigmn1Q%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Eclipse MicroProfile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to microp...@googlegroups.com.
Hi,
On Friday, December 13, 2019 at 1:21:03 PM UTC+1, Siarhei Biarozkin wrote:No, should not be a problem IMHO. What would be of concern to me if the specs were restrained only by those locations which were introduced in MP Config few years ago.But that's not what's happening here, is it?For the purpose of the test it makes no difference if the config file is put in WAR/meta-inf or WAR/web-inf/classes/meta-inf. The test code just needs to pick it up, that's all.It doesn't offer any optional location that's extra to what's being offered by MP Config.In order to pass the test your test code has to pick it up from WAR/meta-inf, which you can do e.g. in an extension and from the extension you put it back on the normal classpath of the archive. In order words, this accomplishes nothing but annoyance and overhead for those having to write the test runner for their product. Users still don't have an extra location they can depend on, since it's not specified in any way.
You are right there should've been more text support around it but it is not there, yet all the implementations claiming a compliance with MP JWT 1.1.1 do support this source :-).Well, not exactly. You can simply move the file to the right location in your archive handler:public class ConfigPropertiesAdder implements ApplicationArchiveProcessor {public void process(WebArchive webArchive) {Node metaInfConfig = webArchive.get("/META-INF/microprofile-config.properties");if (metaInfConfig != null) {webArchive.addAsResource(metaInfConfig.getAsset(), "META-INF/microprofile-config.properties");webArchive.delete("/META-INF/microprofile-config.properties");}}}So as mentioned above, it accomplishes nothing.Rather than looking at it as a 'bug' I'd consider viewing as an opportunity to add an explicit recommendation to MP ConfigBut is that the way to force in features in the spec?What if I had contributed a TCK test that happened to be depending on Jakarta Authentication? Then, based on that test, claim Jakarta Authentication support has to be added to the spec?I'm not sure if that's the right way to do these things.
To unsubscribe from this group and stop receiving emails from it, send an email to microprofile...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/microprofile/583cfa77-32b1-41d3-bf41-3a58136c9579%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to microprofile...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/microprofile/393078b3-50db-433a-8430-64b9417e0309%40googlegroups.com.
HiOn Fri, Dec 13, 2019 at 2:09 PM Arjan Tijms <arjan...@gmail.com> wrote:Hi,
On Friday, December 13, 2019 at 1:21:03 PM UTC+1, Siarhei Biarozkin wrote:No, should not be a problem IMHO. What would be of concern to me if the specs were restrained only by those locations which were introduced in MP Config few years ago.But that's not what's happening here, is it?For the purpose of the test it makes no difference if the config file is put in WAR/meta-inf or WAR/web-inf/classes/meta-inf. The test code just needs to pick it up, that's all.It doesn't offer any optional location that's extra to what's being offered by MP Config.In order to pass the test your test code has to pick it up from WAR/meta-inf, which you can do e.g. in an extension and from the extension you put it back on the normal classpath of the archive. In order words, this accomplishes nothing but annoyance and overhead for those having to write the test runner for their product. Users still don't have an extra location they can depend on, since it's not specified in any way.I don't know, maybe I'm not seeing something but here for example, no special tricks are done:
Hi
I don't know, maybe I'm not seeing something but here for example, no special tricks are done:
--
You received this message because you are subscribed to the Google Groups "Eclipse MicroProfile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to microprofile...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/microprofile/fcf4c910-6681-4d2c-a4a1-cc3f0cecbf7d%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Eclipse MicroProfile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to microprofile...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/microprofile/f3b49cf7-b1fc-4e2f-a002-1c1381307c12%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "Eclipse MicroProfile" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/microprofile/nm7Ph0XK_UU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to microprofile...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/microprofile/CAMsYBfVZe0Qh%2BiTuVpg5OcNLGx-kbR3FO%3DPctm4a1K2se7n6og%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/microprofile/CACZTZYXoFbe-HXMm5fm-s6ZZqT9Rj7Hb%3Dvbg1QFJAU%2BAcHxmBA%40mail.gmail.com.
On Dec 15, 2019, at 2:07 PM, Sergey Beryozkin <sbia...@redhat.com> wrote:
To view this discussion on the web visit https://groups.google.com/d/msgid/microprofile/CAMsYBfVR_3xvLwDUmh4aQbdV7pkqa1M%2Bbp16_cnHPM%3DBM%2B2WBA%40mail.gmail.com.
In any case I proposed to Arjan to submit a TCK test PR for Scott to review. Or just leave it as is....Since it already works for all the MP JWT implementations
Cheers, SergeySergey
To unsubscribe from this group and stop receiving emails from it, send an email to microp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/microprofile/f3b49cf7-b1fc-4e2f-a002-1c1381307c12%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Eclipse MicroProfile" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/microprofile/nm7Ph0XK_UU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to microp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/microprofile/CAMsYBfVZe0Qh%2BiTuVpg5OcNLGx-kbR3FO%3DPctm4a1K2se7n6og%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Eclipse MicroProfile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to microp...@googlegroups.com.