UNCLASSIFIED

Commit f1bc7ce7 authored by Branden Cobb's avatar Branden Cobb
Browse files

Merge branch 'restrict-helm-np' into 'main'

Further restrict network policy

See merge request !31
parents 761c67f7 f983b70c
Pipeline #293481 passed with stages
in 6 minutes and 25 seconds
...@@ -3,6 +3,10 @@ ...@@ -3,6 +3,10 @@
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
--- ---
## [9.2.6-bb.12] - 2021-06-02
### Modified
- Modified helm-test network policy to be more restrictive.
## [9.2.6-bb.11] - 2021-05-27 ## [9.2.6-bb.11] - 2021-05-27
### Modified ### Modified
- Modified the bigbang monitoring network policy to be more restrictive. - Modified the bigbang monitoring network policy to be more restrictive.
......
...@@ -2,7 +2,7 @@ apiVersion: v1 ...@@ -2,7 +2,7 @@ apiVersion: v1
appVersion: 8.7.1-community appVersion: 8.7.1-community
name: sonarqube name: sonarqube
description: SonarQube is an open sourced code quality scanning tool description: SonarQube is an open sourced code quality scanning tool
version: 9.2.6-bb.11 version: 9.2.6-bb.12
keywords: keywords:
- coverage - coverage
- security - security
......
{{- $bbtests := .Values.bbtests | default dict -}} {{- $bbtests := .Values.bbtests | default dict -}}
{{- $cypress := $bbtests.cypress | default dict -}}
{{- $enabled := (hasKey $bbtests "enabled") -}} {{- $enabled := (hasKey $bbtests "enabled") -}}
{{- $artifacts := (hasKey $cypress "artifacts") -}} {{- if $enabled }}
{{- if and $enabled $artifacts }} {{- if and .Values.networkPolicies.enabled .Values.bbtests.enabled }}
{{- if and .Values.networkPolicies.enabled .Values.bbtests.enabled .Values.bbtests.cypress.artifacts }}
apiVersion: networking.k8s.io/v1 apiVersion: networking.k8s.io/v1
kind: NetworkPolicy kind: NetworkPolicy
metadata: metadata:
...@@ -16,11 +14,6 @@ spec: ...@@ -16,11 +14,6 @@ spec:
policyTypes: policyTypes:
- Egress - Egress
egress: egress:
- to: - {}
- ipBlock:
cidr: 0.0.0.0/0
# ONLY Block requests to AWS metadata IP
except:
- 169.254.169.254/32
{{- end }} {{- end }}
{{- end }} {{- end }}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment