Skip to content

Commit

Permalink
update swagger-ui fixing security issues
Browse files Browse the repository at this point in the history
* configured links to Ditto Explorer UI to directly point to the "primaryEnvironmentName=ditto_sandbox"

Signed-off-by: Thomas Jaeckle <thomas.jaeckle@bosch.io>
  • Loading branch information
thjaeckle committed Oct 11, 2022
1 parent bbabfa9 commit 3854df4
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Find the documentation on the project site: [https://www.eclipse.org/ditto/](htt

## Eclipse Ditto™ explorer UI

Find a live version of the latest explorer UI: [https://eclipse.github.io/ditto/](https://eclipse.github.io/ditto/)
Find a live version of the latest explorer UI: [https://eclipse.github.io/ditto/](https://eclipse.github.io/ditto/?primaryEnvironmentName=ditto_sandbox)

You should be able to work with your locally running default using the `local_ditto` environment - and you can add additional environments to also work with e.g. with a deployed installation of Ditto.

Expand Down
2 changes: 1 addition & 1 deletion deployment/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ services:
start_period: 120s

swagger-ui:
image: docker.io/swaggerapi/swagger-ui:v4.14.1
image: docker.io/swaggerapi/swagger-ui:v4.14.3
mem_limit: 32m
restart: always
environment:
Expand Down
2 changes: 1 addition & 1 deletion deployment/docker/sandbox/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ services:
restart: always

swagger-ui:
image: docker.io/swaggerapi/swagger-ui:v4.14.1
image: docker.io/swaggerapi/swagger-ui:v4.14.3
mem_limit: 32m
cpu_shares: 50
restart: always
Expand Down
2 changes: 1 addition & 1 deletion deployment/docker/sandbox/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ <h1><img src="./images/ditto.svg" class="ditto-logo" alt="Eclipse Ditto logo"> -
</p>
<h2>Eclipse Ditto explorer UI</h2>
<p>
The sandbox also hosts the <a href="/ui">Ditto explorer UI</a>.
The sandbox also hosts the <a href="/ui?primaryEnvironmentName=ditto_sandbox">Ditto explorer UI</a>.
</p>
<p>
Choose "ditto_sandbox" from the environment drop-down at the top right in order to explore the things in the sandbox.
Expand Down
2 changes: 1 addition & 1 deletion deployment/kubernetes/deploymentFiles/swagger/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
spec:
containers:
- name: swagger-ui
image: docker.io/swaggerapi/swagger-ui:v4.14.1
image: docker.io/swaggerapi/swagger-ui:v4.14.3
env:
- name: QUERY_CONFIG_ENABLED
value: "true"
Expand Down
6 changes: 3 additions & 3 deletions documentation/src/main/resources/_layouts/swagger_layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
{% include head.html %}

<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/4.14.1/swagger-ui.css" >
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/4.14.3/swagger-ui.css" >
<link rel="stylesheet" type="text/css" href="css/swagger.css" >
<style>
html
Expand Down Expand Up @@ -34,8 +34,8 @@
{% include footer.html %}
</div>

<script src="https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/4.14.1/swagger-ui-bundle.js"> </script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/4.14.1/swagger-ui-standalone-preset.js"> </script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/4.14.3/swagger-ui-bundle.js"> </script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/4.14.3/swagger-ui-standalone-preset.js"> </script>
{{content}}

</body>
Expand Down

0 comments on commit 3854df4

Please sign in to comment.