phoss-smp icon indicating copy to clipboard operation
phoss-smp copied to clipboard

Allow query base path for all manadatory APIs

Open phax opened this issue 4 months ago • 6 comments

This only works after NAPTR resolution is mandatory and the old Peppol CNAME stuff is gone. Example prefix: /smpquerypath

This path needs to be added to the SMP registration as well

phax avatar Sep 04 '25 10:09 phax

With November under way, we'd like to switch to HTTPS for our phoss-smp but it would really help if this feature was in place so that we could get rid of some custom firewall rules at the same time (if we're able to publish this API similarly to all our other public APIs it would fall under the normal rule). What is the timeline for this enhancement?

mirvnillith avatar Nov 03 '25 12:11 mirvnillith

Yes, this feature is in place and works - I recommend to use the latest version (8.0.4). Make sure to disable "smp.forceroot" (in case you use it). However, be aware that usually not all Peppol Service Providers are strictly adhering to all schedules all the time....

phax avatar Nov 03 '25 17:11 phax

So currently, you can define the deployment path of your SMP, and this is working. There is no default query path built in yet (sorry). So this issue needs to stay open

phax avatar Nov 03 '25 17:11 phax

However, be aware that usually not all Peppol Service Providers are strictly adhering to all schedules all the time....

Well, we have seen pre-November HTTPS registrations ...

mirvnillith avatar Nov 04 '25 07:11 mirvnillith

So currently, you can define the deployment path of your SMP, and this is working.

You mean by naming the application folder in Tomcat webapps? And the public API will be at the result root?

mirvnillith avatar Nov 04 '25 07:11 mirvnillith

So yes, I know the issue with the pre-November https - luckily this is no longer an issue. And yes, you can simply rename the folder in Tomcat webapps from ROOT e.g. to smp and voila - /smp will be part of your path. ROOT is special as it maps to /.

phax avatar Nov 04 '25 07:11 phax