Skip to content

Commit

Permalink
bump swagger-ui version to resolve security issues
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Jäckle <thomas.jaeckle@beyonnex.io>
  • Loading branch information
thjaeckle committed Oct 26, 2023
1 parent 38af233 commit ec02764
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion deployment/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ services:
restart: always

swagger-ui:
image: docker.io/swaggerapi/swagger-ui:v5.7.2
image: docker.io/swaggerapi/swagger-ui:v5.9.1
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:v5.7.2
image: docker.io/swaggerapi/swagger-ui:v5.9.1
mem_limit: 32m
cpu_shares: 50
restart: always
Expand Down
2 changes: 1 addition & 1 deletion deployment/helm/ditto/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ description: |
A digital twin is a virtual, cloud based, representation of his real world counterpart
(real world “Things”, e.g. devices like sensors, smart heating, connected cars, smart grids, EV charging stations etc).
type: application
version: 3.4.0 # chart version is effectively set by release-job
version: 3.4.1 # chart version is effectively set by release-job
appVersion: 3.4.0
keywords:
- iot-chart
Expand Down
2 changes: 1 addition & 1 deletion deployment/helm/ditto/templates/swaggerui-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ spec:
{{- end }}
initContainers:
- name: {{ .Chart.Name }}-swaggerui-init
image: "docker.io/boky/alpine-bootstrap:latest"
image: "docker.io/curlimages/curl:8.3.0"
imagePullPolicy: {{ .Values.swaggerui.image.pullPolicy }}
command:
- sh
Expand Down
2 changes: 1 addition & 1 deletion deployment/helm/ditto/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1691,7 +1691,7 @@ swaggerui:
# repository for the swagger ui docker image
repository: docker.io/swaggerapi/swagger-ui
# tag for the swagger ui docker image
tag: v4.19.1
tag: v5.9.1
# pullPolicy for the swagger ui docker image
pullPolicy: IfNotPresent
# extraEnv to add arbitrary environment variable to swagger ui container
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:v5.7.2
image: docker.io/swaggerapi/swagger-ui:v5.9.1
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/5.7.2/swagger-ui.css" >
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/5.9.1/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/5.7.2/swagger-ui-bundle.js"> </script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/5.7.2/swagger-ui-standalone-preset.js"> </script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/5.9.1/swagger-ui-bundle.js"> </script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/5.9.1/swagger-ui-standalone-preset.js"> </script>
{{content}}

</body>
Expand Down

0 comments on commit ec02764

Please sign in to comment.