Skip to content

Commit

Permalink
NSOF-7538 ssl_bypass_rules: fix action description
Browse files Browse the repository at this point in the history
  • Loading branch information
Hillel Cohen committed Jun 13, 2023
1 parent 703fec1 commit e772dea
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/data-sources/ssl_bypass_rule.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ output "rule" {

- `action` (String) Enum: `BYPASS`, `INTERCEPT`.
The action to perform in case of a match.
`BYPASS` (default) The traffic is sent directly to the internet omitting SSL inspection.
`INTERCEPT` The traffic is intercepted for SSL inspection and sent for further security examination.
`BYPASS` (default) - The traffic is sent directly to the internet omitting SSL inspection.
`INTERCEPT` - The traffic is intercepted for SSL inspection and sent for further security examination.
- `apply_to_org` (Boolean) Indicates whether this SSL bypass rule applies to the org.
- `bypass_uncategorized_urls` (Boolean) Whether to SSL bypass uncategorized URLs.
- `content_types` (List of String) A List of content types. If a domain is found to be categorized under at least of one of them, it will be bypassed. `Abortion`, `Abused Drugs`, `Adult and Pornography`, `Alcohol and Tobacco`, `Auctions`, `Business and Economy`, `Cheating`, `Computer and Internet Info`, `Computer and Internet Security`, `Content Delivery Networks`, `Cult and Occult`, `Dating`, `Dead Sites`, `Dynamically Generated Content`, `Educational Institutions`, `Entertainment and Arts`, `Fashion and Beauty`, `Financial Services`, `Gambling`, `Games`, `Government`, `Gross`, `Hacking`, `Hate and Racism`, `Health and Medicine`, `Home and Garden`, `Hunting and Fishing`, `Illegal`, `Image and Video Search`, `Individual Stock Advice and Tools`, `Internet Portals`, `Internet Communications`, `Job Search`, `Kids`, `Legal`, `Local Information`, `Marijuana`, `Military`, `Motor Vehicles`, `Music`, `News and Media`, `Nudity`, `Online Greeting Cards`, `Parked Domains`, `Pay to Surf`, `Personal sites and Blogs`, `Personal Storage`, `Philosophy and Political Advocacy`, `Questionable`, `Real Estate`, `Recreation and Hobbies`, `Reference and Research`, `Religion`, `Search Engines`, `Sex Education`, `Shareware and Freeware`, `Shopping`, `Social Networking`, `Society`, `Sports`, `Streaming Media`, `Swimsuits and Intimate Apparel`, `Training and Tools`, `Translation`, `Travel`, `Violence`, `Weapons`, `Web Advertisements`, `Web-based Email`, `Web Hosting`
Expand Down
4 changes: 2 additions & 2 deletions docs/resources/ssl_bypass_rule.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ resource "pfptmeta_ssl_bypass_rule" "rule" {

- `action` (String) Enum: `BYPASS`, `INTERCEPT`.
The action to perform in case of a match.
`BYPASS` (default) The traffic is sent directly to the internet omitting SSL inspection.
`INTERCEPT` The traffic is intercepted for SSL inspection and sent for further security examination.
`BYPASS` (default) - The traffic is sent directly to the internet omitting SSL inspection.
`INTERCEPT` - The traffic is intercepted for SSL inspection and sent for further security examination.
- `apply_to_org` (Boolean) Indicates whether this SSL bypass rule applies to the org.
- `bypass_uncategorized_urls` (Boolean) Whether to SSL bypass uncategorized URLs.
- `content_types` (List of String) A List of content types. If a domain is found to be categorized under at least of one of them, it will be bypassed. `Abortion`, `Abused Drugs`, `Adult and Pornography`, `Alcohol and Tobacco`, `Auctions`, `Business and Economy`, `Cheating`, `Computer and Internet Info`, `Computer and Internet Security`, `Content Delivery Networks`, `Cult and Occult`, `Dating`, `Dead Sites`, `Dynamically Generated Content`, `Educational Institutions`, `Entertainment and Arts`, `Fashion and Beauty`, `Financial Services`, `Gambling`, `Games`, `Government`, `Gross`, `Hacking`, `Hate and Racism`, `Health and Medicine`, `Home and Garden`, `Hunting and Fishing`, `Illegal`, `Image and Video Search`, `Individual Stock Advice and Tools`, `Internet Portals`, `Internet Communications`, `Job Search`, `Kids`, `Legal`, `Local Information`, `Marijuana`, `Military`, `Motor Vehicles`, `Music`, `News and Media`, `Nudity`, `Online Greeting Cards`, `Parked Domains`, `Pay to Surf`, `Personal sites and Blogs`, `Personal Storage`, `Philosophy and Political Advocacy`, `Questionable`, `Real Estate`, `Recreation and Hobbies`, `Reference and Research`, `Religion`, `Search Engines`, `Sex Education`, `Shareware and Freeware`, `Shopping`, `Social Networking`, `Society`, `Sports`, `Streaming Media`, `Swimsuits and Intimate Apparel`, `Training and Tools`, `Translation`, `Travel`, `Violence`, `Weapons`, `Web Advertisements`, `Web-based Email`, `Web Hosting`
Expand Down
4 changes: 3 additions & 1 deletion internal/provider/ssl_bypass_rule/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ const (
contentTypesDesc = "A List of content types. If a domain is found to be categorized under at least of one of them, it will be bypassed. " + common.ContentTypesDoc
domainsDesc = "A list of domains to SSL bypass."
actionDesc = "Enum: `BYPASS`, `INTERCEPT`.\n" +
"The action to take in case of a match"
"The action to perform in case of a match.\n" +
"`BYPASS` (default) - The traffic is sent directly to the internet omitting SSL inspection.\n" +
"`INTERCEPT` - The traffic is intercepted for SSL inspection and sent for further security examination."
)

func parseSslBypassRule(d *schema.ResourceData, pf *client.SSLBypassRule) diag.Diagnostics {
Expand Down

0 comments on commit e772dea

Please sign in to comment.