We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 467cdde commit 204224eCopy full SHA for 204224e
infra/gcp/terraform/modules/oci-proxy/cloud-armor.tf
@@ -69,7 +69,14 @@ resource "google_compute_security_policy" "cloud-armor" {
69
priority = "1"
70
match {
71
expr {
72
- expression = "!request.path.matches('(?:^/$)|(?:^/privacy$)|(?:^/v2/)')"
+ # allow:
73
+ # our homepage info redirect: /
74
+ # our privacy info redirect: /privacy
75
+ # OCI ping: /v2
76
+ # OCI pull / list calls: /v2/<name>/(blobs|manifests|tags)/<reference>
77
+ # https://github.com/opencontainers/distribution-spec/blob/main/spec.md#endpoints
78
+ # NOTE: AR doesn't support referrers API
79
+ expression = "!request.path.matches('(?:^/?$)|(?:^/privacy$)|(?:^/v2/?$)|(?:^/v2/.+/(:?blobs|manifests|tags)/.+$)')"
80
}
81
82
0 commit comments