generated from adobe/aem-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #181 from hlxsites/migrate-pr-docker-access
Migrate the PR for deprecating Docker Access Control
- Loading branch information
Showing
9 changed files
with
9 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,60 +22,7 @@ Enhanced terminal output is available for rules created under: | |
|
||
* *Defend > Vulnerabilities > Policy* | ||
* *Defend > Compliance > Policy* | ||
* *Defend > Access* (Docker Engine and Kubernetes access control rules). | ||
|
||
|
||
[.task] | ||
=== Specifying a custom message | ||
|
||
This procedure shows you how to create an access control rule that blocks all users from running the `container_create` operation. | ||
You will configure the rule to emit the following custom message when an action is blocked: | ||
|
||
Contact [email protected] to get additional privileges | ||
|
||
Although this procedure is specific to access control rules, the process for configuring custom messages for vulnerability and compliance rules is the same. | ||
|
||
[.procedure] | ||
. Open Console. | ||
|
||
. Go to *Defend > Access > Docker*, then click *New Docker rule*. | ||
|
||
. In the new rule dialog, enter the following information: | ||
|
||
.. In *Rule name*, enter a name. | ||
|
||
.. Set *Effect* to *Deny*. | ||
|
||
.. In *Show*, uncheck *All* to deselect all actions. | ||
|
||
.. In *Actions*, check *container_create*. | ||
+ | ||
image::runtime-security/customize-terminal-output-765462.png[width=550] | ||
|
||
.. Click on the *Advanced* tab. | ||
|
||
.. In *Custom message for blocked requests*, enter *Contact [email protected] to get additional privileges*. | ||
|
||
.. Click *Save*. | ||
|
||
. Test your setup by running a command that violates your access control rule. | ||
|
||
.. Install your client certs. | ||
+ | ||
For more information, see | ||
xref:../access-control/rbac.adoc#configuring-docker-client-variables[Configure Docker client variables]. | ||
|
||
.. Try to run a container on a host protected by Prisma Cloud: | ||
+ | ||
[source,console] | ||
---- | ||
$ docker --tlsverify -H <HOST>:9998 run ubuntu:latest | ||
docker: Error response from daemon: [Prisma Cloud] The command container_create denied for user aqsa by rule Block create. Contact [email protected] to get additional privileges. | ||
See 'docker run --help'. | ||
---- | ||
+ | ||
Where `<HOST>` is the hostname or IP address for a host running Defender. | ||
|
||
* *Defend > Access* (Kubernetes access control rules). | ||
|
||
[.task] | ||
=== Output itemized list of compliance issues | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters