Skip to content

feat: add securityPolicy support#210

Open
grahamalama wants to merge 6 commits intomainfrom
security-policy
Open

feat: add securityPolicy support#210
grahamalama wants to merge 6 commits intomainfrom
security-policy

Conversation

@grahamalama
Copy link
Copy Markdown
Contributor

Closes MZCLD-2176

@grahamalama grahamalama requested a review from a team as a code owner March 25, 2026 15:17
Comment on lines +1301 to +1309
#
# # Cloud Armor security policy to attach to the load balancer backend.
# # This should match the name of an existing Cloud Armor policy in GCP.
# #
# # NOTE: This option exists only to support migration of existing
# # applications that already use Cloud Armor. New applications should
# # NOT use this — use Fastly for WAF instead.
# #securityPolicy: my-app-policy
#
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super tiny nit: can you place this in alphabetical order before timeoutSec? Also, can you update the parent comment above options to mention it?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed! 88c8a3f

Comment on lines +704 to +707
},
"securityPolicy": {
"type": "string",
"description": "Cloud Armor security policy name to attach to the load balancer backend. For migration of existing applications only — new applications should use Fastly for WAF instead."
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wanted to double check this one. I'm only seeing the addition to hosts.name.options.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh good catch. Since hosts.<host>.backends[].backendPolicy lacks other backendPolicy values like timeoutSec, iap, and logSampleRate, I opted to remove securityPolicy here.

- alphabatize hosts.<host>.options values comments and schema
- remove securityPolicy schema entry from hosts.<host>.backends[].backendPolicy

Since this path doesn't include other options like timeoutSec, iap, and logSampleRate, don't keep securityPolicy around
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants