Skip to content

Commit

Permalink
adds config and documentation from local repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Robb-Fr committed Sep 30, 2024
1 parent ed7c313 commit db6da78
Show file tree
Hide file tree
Showing 36 changed files with 1,545 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# ---> Terraform
# Local .terraform directories
**/.terraform/*

Expand Down Expand Up @@ -35,3 +36,13 @@ override.tf.json
# Ignore CLI configuration files
.terraformrc
terraform.rc

# ---> Ansible
*.retry

# ---> Manually added

# Prevents pushing secrets
*.p12
env.ps1
env.sh
48 changes: 47 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,48 @@
# 2024-seg360-f5xc-demo
Automation and deployment files for setting up the F5XC demo for SEG360 conference's talk #3 - Automatisation du déploiement et protection d’une application Multicloud https://www.eventbrite.ch/e/cyberseg-360-tickets-908204312547

Automation and deployment files for setting up the F5XC demo for SEG360 conference's talk #3 - Automatisation du déploiement et protection d’une application Multicloud <https://www.eventbrite.ch/e/cyberseg-360-tickets-908204312547>

## How to use the demo

First. you should copy the `*.example` files, remove the `.example` extension and adapt the values.

After this, you should be able to run:

```powershell
cd terraform ; .\env.ps1 ; terraform apply
```

This takes easily 20mn to run until the end. Make sure you see the [Troubleshooting](#troubleshooting) section in case of issues.

After this, going to [https://tde-seg.e-xpertsolutions.net/trading/login.php](https://tde-seg.e-xpertsolutions.net/trading/login.php) should show:

![login page](assets/Screenshot%202024-07-23%20at%2016-46-49%20Arcadia%20Finance%20Login%20Page.png)

You can login with username: `admin` and password `iloveblue`.

After this, you should see the following dashboard:

![dashboard](assets/Screenshot%202024-07-23%20at%2016-48-59%20Arcadia%20-%20Account%20Information.png)

The parts circled with red triangles basically represent the 3 levels of features available.

1. The main frontend service on AWS is available. You should be able to buy and sell actions, consistently (for example, you should get and error if you try to sell more than what you have, or you should see the figures being updated if you buy or sell).
2. The first backend service on local site with the refer-a-friend feature. You should be able to put any text in this and get a success message. If you enter twice the same you should get an error telling you so.
3. The first backend service on local site with the money-transfer feature. You should be able to consistently transfer money from your accounts to these friends (all white males (ಠ_ಠ) ). You should also be able to do this by clicking on the people faces on the lower bar.

If services 2 and 3 cannot be reached, you will see their emplacement be replaced by "coming soon" message, showing your MCN app is not yet working.

## Architecture

Deployment as of v4 is represented by the following diagram:

![diagram representing deployment as of v4](assets/SEG360-demo-v4.0-2024-07-23%2016.24.31.excalidraw.svg)

The associated Terraform dependencies graph is represented by the following diagram:

![diagram representing Terraform dependencies as of v4](assets/tf_dependencies_graph.svg)

## Troubleshooting

- On the on-premise site (Cloud B and Cloud C services), the services should already be launched (See `Distributed Apps > Virtual K8s > seg-workloads`). In case of issues with them, you can re-launch them: in the `Pods` tab, delete the running pods, they will come back freshly created.
- After `terraform apply`, the Cloud A HTTP load balancer will take time to be provisioned and propose a valid ACME challenge. Asterix DNS is very capricious so please, wait until the certificate is provisioned before making any request for `tde-seg.e-xpertsolutions.net`, otherwise it will populate Asterix's cache with bad data and you will have to wait 5mn before it gets invalidated.
8 changes: 8 additions & 0 deletions assets/SEG360-demo-v1.0-2024-07-04 15.43.02.excalidraw.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions assets/SEG360-demo-v2.0-2024-07-12 17.29.49.excalidraw.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions assets/SEG360-demo-v3.0-2024-07-23 16.24.31.excalidraw.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions assets/SEG360-demo-v4.0-2024-07-23 16.24.31.excalidraw.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
235 changes: 235 additions & 0 deletions assets/tf_dependencies_graph.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit db6da78

Please sign in to comment.