Skip to content

Commit 16c3f2a

Browse files
committed
update
1 parent 43d15a5 commit 16c3f2a

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

docs/class5/class5.rst

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,9 @@ If you are using different LLM provider, please update accordingly.
576576

577577
Deploy the Nginx AI Guardrails connector pod.
578578

579+
.. Attention::
580+
581+
This Nginx NJS connector script is provided as-is for educational purpose only. As of this writting, its not officially deliver as part of F5 AI Guardrails stack. For production deployment, please harden the Nginx connector accordingly before deploying to production environment.
579582

580583
.. code-block:: bash
581584
@@ -649,14 +652,18 @@ Example test prompt.
649652

650653
As expected shown above, F5 AI Guardrails blocks the prompt that violated the scanner policy.
651654

655+
Example terminal logs shown that Nginx connector is able to extract the prompt and response to F5 AI Guardrails for scanning.
652656

653657
.. image:: ./_static/class5-oob-08.png
654658

659+
Example shown that F5 AI Guardrails is able to block the prompt that violated the scanner policy.
660+
655661
.. image:: ./_static/class5-oob-09.png
656662

657663
Update F5 AI Guardrails policy to redact PII data.
664+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
658665

659-
Go to **Projects** and select your own project. Click **Add Scanners** to add **Corporate guardrails package** to your project. Please notes that **Corporate guardrails package** contains PII redaction scanner.
666+
Go to **Projects** and select your own project. Click **Add Scanners** to add **Corporate guardrails package** to your project. Please notes that **Corporate guardrails package** contains PII redaction scanner. Please notes that **Corporate guardrails package** is a custom build scanner package provided for this class. Its not part of the in-built scanner packages.
660667

661668
.. image:: ./_static/class5-pii-01.png
662669

@@ -672,11 +679,11 @@ You have to enable each scanner manually from Block to Redact.
672679

673680
.. image:: ./_static/class5-pii-04.png
674681

675-
Now, you can validate the PII Redaction scanner is able to redact PII data from FlowiseAI chatbot. As shown below, sensitive PII data are redacted successfully - except email address (based on regex policy)
682+
Now, you can validate the PII Redaction scanner is able to redact PII data from FlowiseAI chatbot. As shown below, sensitive PII data are redacted successfully - except email address (intentional based on custom regex policy)
676683

677684
.. image:: ./_static/class5-pii-05.png
678685

679-
Alternatively, you can also validate from Arcadia Financial modern app chatbot. Similarly, sensitive PII data are redacted successfully - except email address (based on regex policy)
686+
Alternatively, you can also validate from Arcadia Financial modern app chatbot. Similarly, sensitive PII data are redacted successfully - except email address (intentional based on custom regex policy)
680687

681688
.. image:: ./_static/class5-pii-06.png
682689

@@ -693,7 +700,9 @@ The Nginx connector logs also shown that the PII data is redacted successfully.
693700

694701
.. image:: ./_static/class5-pii-08-1.png
695702

696-
Example of a regex only matches if not f5.com email domain. Hence, only non f5.com email will be redacted. f5.com domain will not be redacted.
703+
In this example, the regex is designed to match only email addresses that are not from the f5.com domain. As a result, only non-f5.com email addresses will be redacted, while f5.com addresses remain visible.
704+
705+
This behavior is intentional. This to prevents the AI agent from sending emails to external domains. If the AI agent receives an instruction to send an email to an unknown or external address (perhaps due to manipulation), the address will be redacted, causing the operation to fail.
697706

698707
.. image:: ./_static/class5-pii-09-no-org-email.png
699708

0 commit comments

Comments
 (0)