Skip to content

Commit d2193aa

Browse files
committed
docs(traefik): Replace the flow diagram with a sequence diagram
The previous flow diagram was incorrect and hard to understand, replacing it with 2 sequence diagrams, one for a legitimate user not getting challenged and one for a legitimate user getting challenged before being able to access the target. Signed-off-by: furtest <paul.retourne@orange.fr>
1 parent 1e48a30 commit d2193aa

1 file changed

Lines changed: 35 additions & 12 deletions

File tree

docs/docs/admin/environments/traefik.mdx

Lines changed: 35 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,42 @@ In this example, we will use 4 Containers:
2222
This is a small diagram depicting the flow.
2323
Keep in mind that `8080` or `80` can be anything depending on your containers.
2424

25+
Sequence diagram for an authorized connection :
2526
```mermaid
26-
flowchart LR
27-
user[User]
28-
traefik[Traefik]
29-
anubis[Anubis]
30-
target[Target]
31-
32-
user-->|:443 - Requesting Service|traefik
33-
traefik-->|:8080 - Check authorization to Anubis|anubis
34-
anubis-->|redirect if failed|traefik
35-
user-->|:8080 - make the challenge|traefik
36-
anubis-->|redirect back to target|traefik
37-
traefik-->|:80 - Passing to the target|target
27+
sequenceDiagram
28+
participant U as User
29+
participant T as Traefik
30+
participant A as Anubis
31+
participant S as Target
32+
U->>T: :443 - Requesting service
33+
T->>A: :8080 - Check authorization to Anubis
34+
A-->>T: 200 OK - Authorized
35+
T->>S: :80 - Forward request to target
36+
S-->>U: Answer from target
37+
```
38+
39+
Sequence diagram for a user getting challenged :
40+
```mermaid
41+
sequenceDiagram
42+
participant U as User
43+
participant T as Traefik
44+
participant A as Anubis
45+
participant S as Target
46+
U->>T: :443 - Requesting service
47+
T->>A: :8080 - Check authorization to Anubis
48+
A-->>U: Redirect to challenge page
49+
U->>T: :443 - Get challenge page
50+
T->>A: :8080 - Get challenge page
51+
A-->>U: Send challenge
52+
Note left of U: Solves challenge
53+
U->>T: :443 - Send solved challenge
54+
T->>A:
55+
A-->>U: Access cookie
56+
U->>T: :443 - Requesting service
57+
T->>A: :8080 - Check authorization to Anubis again
58+
A-->>T: Authorized
59+
T->>S: :80 - Forward request to target
60+
S-->>U: Answer from target
3861
```
3962

4063
## Full Example Config

0 commit comments

Comments
 (0)