Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add network policies for Harbor #906

Merged

Conversation

SdgJlbl
Copy link
Contributor

@SdgJlbl SdgJlbl commented May 17, 2024

Description

How has this been tested?

Checklist

  • changelog was updated with notable changes
  • documentation was updated

@SdgJlbl SdgJlbl requested a review from a team as a code owner May 17, 2024 14:26
@SdgJlbl SdgJlbl force-pushed the feat/add-profile-to-launch-harbor-as-external-registry+ branch from ab04540 to 8015f7b Compare May 17, 2024 15:21
Base automatically changed from feat/add-profile-to-launch-harbor-as-external-registry+ to main May 21, 2024 07:35
@guilhem-barthes guilhem-barthes changed the base branch from main to chore/network-policy May 22, 2024 12:44
@guilhem-barthes guilhem-barthes force-pushed the feat/network-policies-for-harbor branch from 0722718 to 2590820 Compare May 22, 2024 13:15
@guilhem-barthes guilhem-barthes force-pushed the feat/network-policies-for-harbor branch from 2590820 to c9b3dc7 Compare May 22, 2024 13:21
Signed-off-by: Guilhem Barthés <guilhem.barthes@owkin.com>
@guilhem-barthes guilhem-barthes merged commit ec622dd into chore/network-policy May 22, 2024
2 of 4 checks passed
@guilhem-barthes guilhem-barthes deleted the feat/network-policies-for-harbor branch May 22, 2024 13:30
guilhem-barthes added a commit that referenced this pull request May 22, 2024
* chore: add network policies for Harbor

* chore: add newline

Signed-off-by: Guilhem Barthés <guilhem.barthes@owkin.com>

---------

Signed-off-by: Guilhem Barthés <guilhem.barthes@owkin.com>
Co-authored-by: Guilhem Barthés <guilhem.barthes@owkin.com>
guilhem-barthes added a commit that referenced this pull request May 23, 2024
* chore: add limits and requests to pods

Signed-off-by: SdgJlbl <sarah.diot-girard@owkin.com>

* chore: add network policy

Signed-off-by: SdgJlbl <sarah.diot-girard@owkin.com>

* revert: "chore: add limits and requests to pods"

This reverts commit 8d277d6.

* feat: deny all traffic

Signed-off-by: Guilhem Barthés <guilhem.barthes@owkin.com>

* feat: allow connection to redis

Signed-off-by: Guilhem Barthés <guilhem.barthes@owkin.com>

* feat: allow connection to database

Signed-off-by: Guilhem Barthés <guilhem.barthes@owkin.com>

* feat: allow connection to docker-registry

Signed-off-by: Guilhem Barthés <guilhem.barthes@owkin.com>

* feat: allow connection to storage

Signed-off-by: Guilhem Barthés <guilhem.barthes@owkin.com>

* feat: allow connection to orc

Signed-off-by: Guilhem Barthés <guilhem.barthes@owkin.com>

* feat: allow connection to internet

Signed-off-by: Guilhem Barthés <guilhem.barthes@owkin.com>

* feat: add communication with server

Signed-off-by: Guilhem Barthés <guilhem.barthes@owkin.com>

* feat: add communication with k8s api server

Signed-off-by: Guilhem Barthés <guilhem.barthes@owkin.com>

* feat: add internet communication for builder

Signed-off-by: Guilhem Barthés <guilhem.barthes@owkin.com>

* fix: add http requests between backends in same cluster

Signed-off-by: Guilhem Barthés <guilhem.barthes@owkin.com>

* fix: add `skaffold-local-ingress` network policies

Signed-off-by: Guilhem Barthés <guilhem.barthes@owkin.com>

* chore: test with weaker policy for api k8s

Signed-off-by: Guilhem Barthés <guilhem.barthes@owkin.com>

* wip: test with weaker deny all

Signed-off-by: Guilhem Barthés <guilhem.barthes@owkin.com>

* chore: remove commented code

Signed-off-by: Guilhem Barthés <guilhem.barthes@owkin.com>

* chore: remove commented code as it is parsed by helm but not k8s

Signed-off-by: Guilhem Barthés <guilhem.barthes@owkin.com>

* fix: `-api-server-egress` was not an array

Signed-off-by: Guilhem Barthés <guilhem.barthes@owkin.com>

* fix: `-api-server-egress` `ipBlock` indentation

Signed-off-by: Guilhem Barthés <guilhem.barthes@owkin.com>

* fix: add more private IP range to target kubernetes apiserver

Signed-off-by: Guilhem Barthés <guilhem.barthes@owkin.com>

* feat: add `server.allowLocalRequests` parameter

Signed-off-by: Guilhem Barthés <guilhem.barthes@owkin.com>

* chore: remove duplicate network policies (replaced by `allowLocalRequests`)

Signed-off-by: Guilhem Barthés <guilhem.barthes@owkin.com>

* fix: add `role-api-k8s-client: 'true'` to builder when `privateCa.enabled` is enabled

Signed-off-by: Guilhem Barthés <guilhem.barthes@owkin.com>

* chore: remove unused `deploy.kubectl`

Signed-off-by: Guilhem Barthés <guilhem.barthes@owkin.com>

* fix: allow communication between backends in the same cluster

Signed-off-by: Guilhem Barthés <guilhem.barthes@owkin.com>

* fix: allow communication between local backends with `allowLocalRequests`

Signed-off-by: Guilhem Barthés <guilhem.barthes@owkin.com>

* fix:  readd policy to prevent compute-task to communicate with internet

Signed-off-by: Guilhem Barthés <guilhem.barthes@owkin.com>

* doc: update chart version and changelog

Signed-off-by: Guilhem Barthés <guilhem.barthes@owkin.com>

* chore: add network policies for Harbor (#906)

* chore: add network policies for Harbor

* chore: add newline

Signed-off-by: Guilhem Barthés <guilhem.barthes@owkin.com>

---------

Signed-off-by: Guilhem Barthés <guilhem.barthes@owkin.com>
Co-authored-by: Guilhem Barthés <guilhem.barthes@owkin.com>

* fix: remove wrong value for profile `three-org`

Signed-off-by: Guilhem Barthés <guilhem.barthes@owkin.com>

---------

Signed-off-by: SdgJlbl <sarah.diot-girard@owkin.com>
Signed-off-by: Guilhem Barthés <guilhem.barthes@owkin.com>
Co-authored-by: Guilhem Barthés <guilhem.barthes@owkin.com>
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.

None yet

2 participants