Skip to content

Commit 6cc6fa7

Browse files
committed
Fix index page
- was missing link to lab 11 - lab 5 missed link to lab 11 (which was intended but left as a todo) Signed-off-by: Alex Ellis (VMware) <[email protected]>
1 parent 84cae2f commit 6cc6fa7

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,17 @@ If you're taking an instructor-led workshops then a link will be shared to join
103103
* Observe auto-scaling kicking in
104104

105105
## [Lab 10 - Advanced Feature - Secrets](./lab10.md)
106+
106107
* Adapt issue-bot to use a secret
107108
* Create a Swarm secret
108109
* Access the secret within the function
109110

110111
You can start with the first lab [Lab 1](lab1.md).
111112

113+
# [Lab 11 - Advanced feature - Trust with HMAC](./lab11.md)
114+
115+
* Apply trust to functions using HMAC
116+
112117
## Tear down / Clear up
113118

114119
You can find how to stop and remove OpenFaaS [here](https://github.com/openfaas/faas/blob/master/guide/troubleshooting.md#stop-and-remove-openfaas)

lab10.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,4 @@ Use the CLI to build and deploy the function:
8383
$ faas-cli up -f issue-bot.yml
8484
```
8585

86-
You can return to the [main page](./README.md).
86+
Now move onto [Lab 11](lab11.md).

lab11.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@
22

33
<img src="https://github.com/openfaas/media/raw/master/OpenFaaS_Magnet_3_1_png.png" width="500px"></img>
44

5-
Before starting this lab create new folder
5+
Before starting this lab create a new folder
6+
67
```
78
mkdir -p lab11 \
89
&& cd lab11
910
```
1011

1112
## What is HMAC
1213

13-
Currently there are no limitations on who can make use of our functions. As long as connectivity allows, our functions can be invoked without any restriction. By default they trust any supplied information to be genuine. However, if we want to control access to functions we can use Hash-based Message Authentication Code (HMAC) to validate the source of information.
14+
Without any form of authentication or trust our functions may be exposed to anyone who can guess their URL. If our functions are accessible on the Internet or the local network then they could be invoked by a bad actor. By default functions respond to any request. However, if we want to control access to functions we can use Hash-based Message Authentication Code (HMAC) to validate the source of information.
1415

1516
From [alexellis/hmac](https://github.com/alexellis/hmac):
1617
> HMAC uses a symmetric key that both sender/receiver share ahead of time. The sender will generate a hash when wanting to transmit a message - this data is sent along with the payload. The recipient will then sign payload with the shared key and if the hash matches then the payload is assumed to be from the sender.
@@ -184,5 +185,6 @@ $ echo -n "This is a message" | faas-cli invoke hmac-protected --sign hmac --key
184185
HMAC validation failed.
185186
```
186187

187-
Now you can secure your payload on `issue-bot` from [lab5](https://github.com/openfaas/workshop/blob/7f1b0246376b7e4380bb5874655f28254c15f749/lab5.md)
188+
As a follow-up task you could apply HMAC to secure your endpoint on `issue-bot` from [lab 5](https://github.com/openfaas/workshop/blob/7f1b0246376b7e4380bb5874655f28254c15f749/lab5.md)
188189

190+
You have completed the labs and can return to the [main page](./README.md).

lab5.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,6 @@ Now try it out by creating some new issues in the `bot-tester` repository. Check
347347
348348
## Validate payload with HMAC
349349

350-
To further protect your function with HMAC head over to [lab11](url when merged)
350+
In [Lab 11](lab11.md) we will learn how to protect a serverless function from tampering through the use of HMAC.
351351

352352
Now move on to [Lab 6](lab6.md).

0 commit comments

Comments
 (0)