Skip to content

Commit b738608

Browse files
eliasgierlingerW3D3
authored andcommitted
⚰️ refactor: Remove commented-out code, unneeded files
1 parent 5869152 commit b738608

File tree

41 files changed

+189
-364
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+189
-364
lines changed

.idea/gradle.xml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/php.xml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.idea/unguard.iml

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Unguard is composed of eight microservices written in different languages that t
3232
| [proxy-service](./src/proxy-service) | Java Spring | unguard-proxy | Serves REST API for proxying requests from frontend (vulnerable to SSRF; no sanitization on the entered URL). |
3333
| [profile-service](./src/profile-service) | Java Spring | default | Serves REST API for updating biography information in a H2 database; vulnerable to SQL injection attacks |
3434
| [membership-service](./src/membership-service) | .NET 7 | default | Serves REST API for updating user memberships in a MariaDB; vulnerable to SQL injection attacks |
35-
| [like-service](./src/like-service) | PHP | default | Serves REST API for liking and unliking posts using MariaDB; vulnerable to an SQL injection attack for removing other users' likes |
35+
| [like-service](./src/like-service) | PHP | default | Serves REST API for adding likes to posts using MariaDB; vulnerable to SQL injection attacks |
3636
| [user-auth-service](./src/user-auth-service) | Node.js Express | default | Serves REST API for authenticating users with JWT tokens (vulnerable to JWT key confusion). |
3737
| [status-service](./src/status-service) | Go | unguard-status | Serves REST API for Kubernetes deployments health, as well as a user and user role list (vulnerable to SQL injection) |
3838
| jaeger | | default | The [Jaeger](https://www.jaegertracing.io/) stack for distributed tracing. |

chart/templates/ingress.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,4 @@ spec:
5151
name: unguard-envoy-proxy
5252
port:
5353
number: 8080
54-
- path: /
55-
pathType: Prefix
56-
backend:
57-
service:
58-
name: unguard-envoy-proxy
59-
port:
60-
number: 8000
6154
{{end}}

chart/values.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ likeService:
404404
ports:
405405
containerPort: 8000
406406
env:
407-
JAEGER_COLLECTOR_HOST: collector # PHP OpenTelemetry sends data to jaeger-collector instead of jaeger-agent
407+
JAEGER_COLLECTOR_HOST: collector # PHP OpenTelemetry sends data to jaeger-collector instead of jaeger-agent
408408
JAEGER_DISABLED: true
409409
JAEGER_PORT: 4318
410410
SERVICE_NAME: unguard-like-service
@@ -455,4 +455,3 @@ frontend:
455455
LIKE_SERVICE_BASE_PATH: /like-service
456456
MEMBERSHIP_SERVICE_BASE_PATH: /membership-service
457457
STATUS_SERVICE_BASE_PATH: /status-service
458-

docs/TRACING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ This document explains how to install Jaeger tracing using Helm to the cluster.
3030
1. For local development
3131
1. Install Jaeger (takes a couple of minutes)
3232
```sh
33-
helm install jaeger jaegertracing/jaeger --version 0.71.14 --wait --namespace unguard --create-namespace --values ./chart/jaeger-otlp-values.yaml
33+
helm install jaeger jaegertracing/jaeger --version 0.71.14 --wait --namespace unguard --create-namespace --values ./docs/jaeger/jaeger-otlp-values.yaml
3434
```
3535
2. Install the Jaeger-Operator
3636
```sh
3737
helm install jaeger-operator jaegertracing/jaeger-operator --version 2.22.0 --wait --namespace unguard --create-namespace
3838
```
39-
2. Deploy the AllInOne image for local development
39+
3. Deploy the AllInOne image for local development
4040
```sh
4141
kubectl apply -f ./k8s-manifests/jaeger/jaeger.yaml
4242
```

docs/images/unguard-timeline.png

75.3 KB
Loading
-8.71 KB
Loading

0 commit comments

Comments
 (0)