Skip to content

Commit

Permalink
fix: Disable REST basic and legacy certificate auth by default (#4972)
Browse files Browse the repository at this point in the history
Signed-off-by: Nicola Timeus <[email protected]>
  • Loading branch information
nicolatimeus authored Nov 14, 2023
1 parent 6328294 commit 5509ed8
Show file tree
Hide file tree
Showing 13 changed files with 208 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -537,4 +537,20 @@
</esf:property>
</esf:properties>
</esf:configuration>
<esf:configuration pid="org.eclipse.kura.internal.rest.provider.RestService">
<esf:properties>
<esf:property array="false" encrypted="false" name="auth.basic.enabled" type="Boolean">
<esf:value>false</esf:value>
</esf:property>
<esf:property array="false" encrypted="false" name="auth.certificate.stateless.enabled" type="Boolean">
<esf:value>false</esf:value>
</esf:property>
<esf:property array="false" encrypted="false" name="kura.service.pid" type="String">
<esf:value>org.eclipse.kura.internal.rest.provider.RestService</esf:value>
</esf:property>
<esf:property array="false" encrypted="false" name="service.pid" type="String">
<esf:value>org.eclipse.kura.internal.rest.provider.RestService</esf:value>
</esf:property>
</esf:properties>
</esf:configuration>
</esf:configurations>
Original file line number Diff line number Diff line change
Expand Up @@ -517,4 +517,20 @@
</esf:property>
</esf:properties>
</esf:configuration>
<esf:configuration pid="org.eclipse.kura.internal.rest.provider.RestService">
<esf:properties>
<esf:property array="false" encrypted="false" name="auth.basic.enabled" type="Boolean">
<esf:value>false</esf:value>
</esf:property>
<esf:property array="false" encrypted="false" name="auth.certificate.stateless.enabled" type="Boolean">
<esf:value>false</esf:value>
</esf:property>
<esf:property array="false" encrypted="false" name="kura.service.pid" type="String">
<esf:value>org.eclipse.kura.internal.rest.provider.RestService</esf:value>
</esf:property>
<esf:property array="false" encrypted="false" name="service.pid" type="String">
<esf:value>org.eclipse.kura.internal.rest.provider.RestService</esf:value>
</esf:property>
</esf:properties>
</esf:configuration>
</esf:configurations>
Original file line number Diff line number Diff line change
Expand Up @@ -481,4 +481,20 @@
</esf:property>
</esf:properties>
</esf:configuration>
<esf:configuration pid="org.eclipse.kura.internal.rest.provider.RestService">
<esf:properties>
<esf:property array="false" encrypted="false" name="auth.basic.enabled" type="Boolean">
<esf:value>false</esf:value>
</esf:property>
<esf:property array="false" encrypted="false" name="auth.certificate.stateless.enabled" type="Boolean">
<esf:value>false</esf:value>
</esf:property>
<esf:property array="false" encrypted="false" name="kura.service.pid" type="String">
<esf:value>org.eclipse.kura.internal.rest.provider.RestService</esf:value>
</esf:property>
<esf:property array="false" encrypted="false" name="service.pid" type="String">
<esf:value>org.eclipse.kura.internal.rest.provider.RestService</esf:value>
</esf:property>
</esf:properties>
</esf:configuration>
</esf:configurations>
Original file line number Diff line number Diff line change
Expand Up @@ -537,4 +537,20 @@
</esf:property>
</esf:properties>
</esf:configuration>
<esf:configuration pid="org.eclipse.kura.internal.rest.provider.RestService">
<esf:properties>
<esf:property array="false" encrypted="false" name="auth.basic.enabled" type="Boolean">
<esf:value>false</esf:value>
</esf:property>
<esf:property array="false" encrypted="false" name="auth.certificate.stateless.enabled" type="Boolean">
<esf:value>false</esf:value>
</esf:property>
<esf:property array="false" encrypted="false" name="kura.service.pid" type="String">
<esf:value>org.eclipse.kura.internal.rest.provider.RestService</esf:value>
</esf:property>
<esf:property array="false" encrypted="false" name="service.pid" type="String">
<esf:value>org.eclipse.kura.internal.rest.provider.RestService</esf:value>
</esf:property>
</esf:properties>
</esf:configuration>
</esf:configurations>
16 changes: 16 additions & 0 deletions kura/distrib/src/main/resources/docker-x86_64-nn/snapshot_0.xml
Original file line number Diff line number Diff line change
Expand Up @@ -398,4 +398,20 @@
</esf:property>
</esf:properties>
</esf:configuration>
<esf:configuration pid="org.eclipse.kura.internal.rest.provider.RestService">
<esf:properties>
<esf:property array="false" encrypted="false" name="auth.basic.enabled" type="Boolean">
<esf:value>false</esf:value>
</esf:property>
<esf:property array="false" encrypted="false" name="auth.certificate.stateless.enabled" type="Boolean">
<esf:value>false</esf:value>
</esf:property>
<esf:property array="false" encrypted="false" name="kura.service.pid" type="String">
<esf:value>org.eclipse.kura.internal.rest.provider.RestService</esf:value>
</esf:property>
<esf:property array="false" encrypted="false" name="service.pid" type="String">
<esf:value>org.eclipse.kura.internal.rest.provider.RestService</esf:value>
</esf:property>
</esf:properties>
</esf:configuration>
</esf:configurations>
Original file line number Diff line number Diff line change
Expand Up @@ -398,4 +398,20 @@
</esf:property>
</esf:properties>
</esf:configuration>
<esf:configuration pid="org.eclipse.kura.internal.rest.provider.RestService">
<esf:properties>
<esf:property array="false" encrypted="false" name="auth.basic.enabled" type="Boolean">
<esf:value>false</esf:value>
</esf:property>
<esf:property array="false" encrypted="false" name="auth.certificate.stateless.enabled" type="Boolean">
<esf:value>false</esf:value>
</esf:property>
<esf:property array="false" encrypted="false" name="kura.service.pid" type="String">
<esf:value>org.eclipse.kura.internal.rest.provider.RestService</esf:value>
</esf:property>
<esf:property array="false" encrypted="false" name="service.pid" type="String">
<esf:value>org.eclipse.kura.internal.rest.provider.RestService</esf:value>
</esf:property>
</esf:properties>
</esf:configuration>
</esf:configurations>
16 changes: 16 additions & 0 deletions kura/distrib/src/main/resources/intel-up2-ubuntu-20/snapshot_0.xml
Original file line number Diff line number Diff line change
Expand Up @@ -505,4 +505,20 @@
</esf:property>
</esf:properties>
</esf:configuration>
<esf:configuration pid="org.eclipse.kura.internal.rest.provider.RestService">
<esf:properties>
<esf:property array="false" encrypted="false" name="auth.basic.enabled" type="Boolean">
<esf:value>false</esf:value>
</esf:property>
<esf:property array="false" encrypted="false" name="auth.certificate.stateless.enabled" type="Boolean">
<esf:value>false</esf:value>
</esf:property>
<esf:property array="false" encrypted="false" name="kura.service.pid" type="String">
<esf:value>org.eclipse.kura.internal.rest.provider.RestService</esf:value>
</esf:property>
<esf:property array="false" encrypted="false" name="service.pid" type="String">
<esf:value>org.eclipse.kura.internal.rest.provider.RestService</esf:value>
</esf:property>
</esf:properties>
</esf:configuration>
</esf:configurations>
Original file line number Diff line number Diff line change
Expand Up @@ -398,4 +398,20 @@
</esf:property>
</esf:properties>
</esf:configuration>
<esf:configuration pid="org.eclipse.kura.internal.rest.provider.RestService">
<esf:properties>
<esf:property array="false" encrypted="false" name="auth.basic.enabled" type="Boolean">
<esf:value>false</esf:value>
</esf:property>
<esf:property array="false" encrypted="false" name="auth.certificate.stateless.enabled" type="Boolean">
<esf:value>false</esf:value>
</esf:property>
<esf:property array="false" encrypted="false" name="kura.service.pid" type="String">
<esf:value>org.eclipse.kura.internal.rest.provider.RestService</esf:value>
</esf:property>
<esf:property array="false" encrypted="false" name="service.pid" type="String">
<esf:value>org.eclipse.kura.internal.rest.provider.RestService</esf:value>
</esf:property>
</esf:properties>
</esf:configuration>
</esf:configurations>
16 changes: 16 additions & 0 deletions kura/distrib/src/main/resources/nvidia-jetson-nano/snapshot_0.xml
Original file line number Diff line number Diff line change
Expand Up @@ -472,4 +472,20 @@
</esf:property>
</esf:properties>
</esf:configuration>
<esf:configuration pid="org.eclipse.kura.internal.rest.provider.RestService">
<esf:properties>
<esf:property array="false" encrypted="false" name="auth.basic.enabled" type="Boolean">
<esf:value>false</esf:value>
</esf:property>
<esf:property array="false" encrypted="false" name="auth.certificate.stateless.enabled" type="Boolean">
<esf:value>false</esf:value>
</esf:property>
<esf:property array="false" encrypted="false" name="kura.service.pid" type="String">
<esf:value>org.eclipse.kura.internal.rest.provider.RestService</esf:value>
</esf:property>
<esf:property array="false" encrypted="false" name="service.pid" type="String">
<esf:value>org.eclipse.kura.internal.rest.provider.RestService</esf:value>
</esf:property>
</esf:properties>
</esf:configuration>
</esf:configurations>
Original file line number Diff line number Diff line change
Expand Up @@ -373,4 +373,20 @@
</esf:property>
</esf:properties>
</esf:configuration>
<esf:configuration pid="org.eclipse.kura.internal.rest.provider.RestService">
<esf:properties>
<esf:property array="false" encrypted="false" name="auth.basic.enabled" type="Boolean">
<esf:value>false</esf:value>
</esf:property>
<esf:property array="false" encrypted="false" name="auth.certificate.stateless.enabled" type="Boolean">
<esf:value>false</esf:value>
</esf:property>
<esf:property array="false" encrypted="false" name="kura.service.pid" type="String">
<esf:value>org.eclipse.kura.internal.rest.provider.RestService</esf:value>
</esf:property>
<esf:property array="false" encrypted="false" name="service.pid" type="String">
<esf:value>org.eclipse.kura.internal.rest.provider.RestService</esf:value>
</esf:property>
</esf:properties>
</esf:configuration>
</esf:configurations>
16 changes: 16 additions & 0 deletions kura/distrib/src/main/resources/raspberry-pi-arm64/snapshot_0.xml
Original file line number Diff line number Diff line change
Expand Up @@ -534,4 +534,20 @@
</esf:property>
</esf:properties>
</esf:configuration>
<esf:configuration pid="org.eclipse.kura.internal.rest.provider.RestService">
<esf:properties>
<esf:property array="false" encrypted="false" name="auth.basic.enabled" type="Boolean">
<esf:value>false</esf:value>
</esf:property>
<esf:property array="false" encrypted="false" name="auth.certificate.stateless.enabled" type="Boolean">
<esf:value>false</esf:value>
</esf:property>
<esf:property array="false" encrypted="false" name="kura.service.pid" type="String">
<esf:value>org.eclipse.kura.internal.rest.provider.RestService</esf:value>
</esf:property>
<esf:property array="false" encrypted="false" name="service.pid" type="String">
<esf:value>org.eclipse.kura.internal.rest.provider.RestService</esf:value>
</esf:property>
</esf:properties>
</esf:configuration>
</esf:configurations>
Original file line number Diff line number Diff line change
Expand Up @@ -373,4 +373,20 @@
</esf:property>
</esf:properties>
</esf:configuration>
<esf:configuration pid="org.eclipse.kura.internal.rest.provider.RestService">
<esf:properties>
<esf:property array="false" encrypted="false" name="auth.basic.enabled" type="Boolean">
<esf:value>false</esf:value>
</esf:property>
<esf:property array="false" encrypted="false" name="auth.certificate.stateless.enabled" type="Boolean">
<esf:value>false</esf:value>
</esf:property>
<esf:property array="false" encrypted="false" name="kura.service.pid" type="String">
<esf:value>org.eclipse.kura.internal.rest.provider.RestService</esf:value>
</esf:property>
<esf:property array="false" encrypted="false" name="service.pid" type="String">
<esf:value>org.eclipse.kura.internal.rest.provider.RestService</esf:value>
</esf:property>
</esf:properties>
</esf:configuration>
</esf:configurations>
16 changes: 16 additions & 0 deletions kura/distrib/src/main/resources/raspberry-pi-armhf/snapshot_0.xml
Original file line number Diff line number Diff line change
Expand Up @@ -540,4 +540,20 @@
</esf:property>
</esf:properties>
</esf:configuration>
<esf:configuration pid="org.eclipse.kura.internal.rest.provider.RestService">
<esf:properties>
<esf:property array="false" encrypted="false" name="auth.basic.enabled" type="Boolean">
<esf:value>false</esf:value>
</esf:property>
<esf:property array="false" encrypted="false" name="auth.certificate.stateless.enabled" type="Boolean">
<esf:value>false</esf:value>
</esf:property>
<esf:property array="false" encrypted="false" name="kura.service.pid" type="String">
<esf:value>org.eclipse.kura.internal.rest.provider.RestService</esf:value>
</esf:property>
<esf:property array="false" encrypted="false" name="service.pid" type="String">
<esf:value>org.eclipse.kura.internal.rest.provider.RestService</esf:value>
</esf:property>
</esf:properties>
</esf:configuration>
</esf:configurations>

0 comments on commit 5509ed8

Please sign in to comment.