@@ -33,10 +33,8 @@ const (
3333	defaultServiceType    =  corev1 .ServiceTypeLoadBalancer 
3434	defaultServicePolicy  =  corev1 .ServiceExternalTrafficPolicyLocal 
3535
36- 	defaultNginxImagePath         =  "ghcr.io/nginx/nginx-gateway-fabric/nginx" 
37- 	defaultNginxPlusImagePath     =  "private-registry.nginx.com/nginx-gateway-fabric/nginx-plus" 
38- 	defaultNginxPlusWafImagePath  =  "private-registry.nginx.com/nginx-gateway-fabric/nginx-plus-waf" 
39- 	defaultImagePullPolicy        =  corev1 .PullIfNotPresent 
36+ 	defaultNginxImagePath   =  "ghcr.io/nginx/nginx-gateway-fabric/nginx" 
37+ 	defaultImagePullPolicy  =  corev1 .PullIfNotPresent 
4038
4139	// WAF container defaults. 
4240	defaultWAFEnforcerImagePath   =  "private-registry.nginx.com/nap/waf-enforcer" 
@@ -914,7 +912,8 @@ func (p *NginxProvisioner) configureNginxPlus(
914912	initCmd  =  append (initCmd ,
915913		"--source" , "/includes/mgmt.conf" ,
916914		"--destination" , "/etc/nginx/main-includes" ,
917- 		"--nginx-plus" )
915+ 		"--nginx-plus" ,
916+ 	)
918917	spec .Spec .InitContainers [0 ].Command  =  initCmd 
919918
920919	// Add NGINX Plus volumes and volume mounts 
@@ -984,10 +983,6 @@ func (p *NginxProvisioner) buildImage(nProxyCfg *graph.EffectiveNginxProxy) (str
984983	tag  :=  p .cfg .GatewayPodConfig .Version 
985984	pullPolicy  :=  defaultImagePullPolicy 
986985
987- 	if  graph .WAFEnabledForNginxProxy (nProxyCfg ) {
988- 		image  =  defaultNginxPlusWafImagePath 
989- 	}
990- 
991986	getImageAndPullPolicy  :=  func (container  ngfAPIv1alpha2.ContainerSpec ) (string , string , corev1.PullPolicy ) {
992987		if  container .Image  !=  nil  {
993988			if  container .Image .Repository  !=  nil  {
@@ -1114,7 +1109,12 @@ func (p *NginxProvisioner) buildWAFEnforcerContainer(
11141109		Image :           image ,
11151110		ImagePullPolicy : defaultImagePullPolicy ,
11161111		SecurityContext : & corev1.SecurityContext {
1117- 			RunAsUser : helpers.GetPointer [int64 ](101 ),
1112+ 			RunAsUser :                helpers.GetPointer [int64 ](101 ),
1113+ 			AllowPrivilegeEscalation : helpers .GetPointer (false ),
1114+ 			RunAsNonRoot :             helpers .GetPointer (false ),
1115+ 			Capabilities : & corev1.Capabilities {
1116+ 				Drop : []corev1.Capability {"all" },
1117+ 			},
11181118		},
11191119		Env : []corev1.EnvVar {
11201120			{Name : "ENFORCER_PORT" , Value : "50000" },
0 commit comments