adorable-train-88202
12/23/2022, 2:54 AMadorable-train-88202
12/23/2022, 7:43 AMadamant-kite-43734
12/23/2022, 11:11 AMadamant-kite-43734
12/23/2022, 1:56 PMadamant-kite-43734
12/23/2022, 3:37 PMhundreds-sugar-37524
12/23/2022, 3:54 PMadamant-kite-43734
12/25/2022, 9:15 PMadamant-kite-43734
12/26/2022, 5:57 AMadamant-kite-43734
12/26/2022, 8:33 AMadamant-kite-43734
12/26/2022, 1:45 PMadamant-kite-43734
12/27/2022, 5:54 AMloud-nest-3266
12/27/2022, 6:09 AMmost-vegetable-47956
12/27/2022, 7:27 AMimport <http://future.keywords.in|future.keywords.in>
violation[{"msg": msg}] {
allowedPorts := [8161, 9404, 61616, 5445, 9999, 2022]
actualPorts := [8161, 9404, 61616, 5445]
some port in actualPorts; not port in allowedPorts
msg := sprintf("service has forbidden exposed ports: %v", [actualPorts])
}
the idea is that if a port in actualPorts
doesn't match any in allowedPorts
, it should result in a violation. this works fine on the OPA playground. but it doesn't work when used as OPA template in Rancher. it seems the import
doesn't work. i've tried import data.lib.future.keywords
and import '<http://github.com/open-policy-agent/opa/internal/future|github.com/open-policy-agent/opa/internal/future>'
,
Q> any ideas on how i can compare the arrays or import the required module?adamant-kite-43734
12/27/2022, 8:56 AMbitter-electrician-37664
12/27/2022, 4:25 PMadamant-kite-43734
12/27/2022, 8:03 PMvictorious-airline-43065
12/28/2022, 8:49 AMkube-proxy-arg:- "metrics-bind-address=0.0.0.0"
in config.yml but it seems to still listen on localhost only tcp 0 0 127.0.0.1:10249
, anyone knows the reason?best-address-42882
12/28/2022, 5:52 PMbest-hair-19862
12/28/2022, 9:50 PMcrooked-shoe-67827
12/29/2022, 9:19 AMadamant-kite-43734
12/29/2022, 10:07 AMadamant-kite-43734
12/29/2022, 3:05 PMboundless-notebook-59700
12/29/2022, 6:47 PMadamant-kite-43734
12/29/2022, 8:31 PMadamant-kite-43734
12/29/2022, 8:43 PMmany-zebra-31494
12/29/2022, 8:45 PMbest-address-42882
12/29/2022, 11:30 PMadamant-kite-43734
12/30/2022, 12:16 AMadamant-kite-43734
12/30/2022, 1:11 AMadamant-kite-43734
12/30/2022, 3:01 AM