Skip to content

Commit

Permalink
test yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
MattDierick committed Nov 8, 2023
1 parent 550d86d commit 0c14724
Show file tree
Hide file tree
Showing 5 changed files with 83 additions and 21 deletions.
64 changes: 58 additions & 6 deletions docs/class4/module2/lab1/lab1.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,62 @@
Enable API discovery
====================
Enable API Validation
=====================

Enable Endpoint Discovery
-------------------------
In the previous section, we enabled AOU Protection. API Protection is based on rules (allow, deny), but API Validation goes deeper into the validation.

API Validation validates the requests and the responses, but also the content (JSON payload) based on the OpenAPI Specifications.

Enable PII Discovery
--------------------
As a reminder, this is the difference between Protection and API Validation.

.. image:: ../pictures/slide-api-protection.png
:align: center
:scale: 40%

.. note:: As an example, API Validation validates if the value of a JSON key matches the specifications (integer, string, array ...)

Example below

.. code-block:: YAML
:emphasize-lines: 24, 36, 38
/adjectives:
get:
description: List all adjectives
tags:
- adjectives
responses:
'200':
description: a list of adjectives with their index
content:
application/json:
schema:
$ref: "#/components/schemas/Adjectives"
post:
description: create an adjective
tags:
- adjectives
requestBody:
content:
application/json:
schema:
type: object
properties:
name:
type: string
example:
name: worried
responses:
'201':
description: adjective created
content:
application/json:
schema:
type: object
properties:
id:
type: integer
name:
type: string
example:
id: 4
name: worried
20 changes: 6 additions & 14 deletions docs/class4/module2/lab2/lab2.rst
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
API Discovery outcomes
======================
Enable API discovery
====================

Endpoint Discovery
------------------
Enable Endpoint Discovery
-------------------------


PII Discovery
-------------
Enable PII Discovery
--------------------



Authentication Discovery
------------------------


AI/ML Security Posture
----------------------
18 changes: 18 additions & 0 deletions docs/class4/module2/lab3/lab3.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
API Discovery outcomes
======================

Endpoint Discovery
------------------


PII Discovery
-------------



Authentication Discovery
------------------------


AI/ML Security Posture
----------------------
2 changes: 1 addition & 1 deletion docs/class4/module2/module2.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Dynamic API Protection
######################

In this section, we will protect the same modern application with F5 Distributed Cloud, but we will enable the **dynamic** protection where SecOps apply the API Discovery and validation.
In this section, we will protect the same modern application with F5 Distributed Cloud, but we will enable the **dynamic** protection where SecOps apply the API Discovery and Validation.


**Module 2 - All sections**
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0c14724

Please sign in to comment.