Skip to content

small steps for the nsps #25

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

Merged
merged 19 commits into from
Sep 21, 2022
Merged

small steps for the nsps #25

merged 19 commits into from
Sep 21, 2022

Conversation

commjoen
Copy link
Collaborator

No description provided.

@commjoen commjoen changed the title small steps for the defs small steps for the nsps Sep 19, 2022
@commjoen
Copy link
Collaborator Author

apiVersion: v1
items:
- apiVersion: networking.k8s.io/v1
  kind: NetworkPolicy
  metadata:
    creationTimestamp: "2022-09-19T20:57:26Z"
    generation: 1
    name: default-deny-all
    namespace: t-aaa
    resourceVersion: "2417"
    uid: 1e6f07ee-9414-43e6-8c13-2d447281bc76
  spec:
    podSelector: {}
    policyTypes:
    - Ingress
    - Egress
  status: {}
- apiVersion: networking.k8s.io/v1
  kind: NetworkPolicy
  metadata:
    creationTimestamp: "2022-09-19T20:57:26Z"
    generation: 1
    name: deny-all-egress-excpet-dns
    namespace: t-aaa
    resourceVersion: "2421"
    uid: 6e066ce9-0147-4aa5-b5d9-7d6add674eff
  spec:
    egress:
    - ports:
      - port: 53
        protocol: UDP
      - port: 53
        protocol: TCP
    podSelector:
      matchLabels:
        app: wrongsecrets-no-vault
    policyTypes:
    - Egress
  status: {}
- apiVersion: networking.k8s.io/v1
  kind: NetworkPolicy
  metadata:
    creationTimestamp: "2022-09-19T20:57:26Z"
    generation: 1
    name: deny-traffic-from-other-namespaces
    namespace: t-aaa
    resourceVersion: "2419"
    uid: bc2fbd4d-6586-47bb-91f0-239cd7004f76
  spec:
    ingress:
    - from:
      - podSelector: {}
    podSelector: {}
    policyTypes:
    - Ingress
  status: {}
- apiVersion: networking.k8s.io/v1
  kind: NetworkPolicy
  metadata:
    creationTimestamp: "2022-09-19T20:58:22Z"
    generation: 1
    name: default-deny-all
    namespace: t-target
    resourceVersion: "2614"
    uid: 69150884-8fda-43d0-b98b-38a8ff78c815
  spec:
    podSelector: {}
    policyTypes:
    - Ingress
    - Egress
  status: {}
- apiVersion: networking.k8s.io/v1
  kind: NetworkPolicy
  metadata:
    creationTimestamp: "2022-09-19T20:58:22Z"
    generation: 1
    name: deny-all-egress-excpet-dns
    namespace: t-target
    resourceVersion: "2620"
    uid: a3245db8-80ed-46a1-be9f-b32ab05a66e2
  spec:
    egress:
    - ports:
      - port: 53
        protocol: UDP
      - port: 53
        protocol: TCP
    podSelector:
      matchLabels:
        app: wrongsecrets-no-vault
    policyTypes:
    - Egress
  status: {}
- apiVersion: networking.k8s.io/v1
  kind: NetworkPolicy
  metadata:
    creationTimestamp: "2022-09-19T20:58:22Z"
    generation: 1
    name: deny-traffic-from-other-namespaces
    namespace: t-target
    resourceVersion: "2618"
    uid: 3ed1692c-6c13-4833-8604-b04d0de7210e
  spec:
    ingress:
    - from:
      - podSelector: {}
    podSelector: {}
    policyTypes:
    - Ingress
  status: {}
kind: List
metadata:
  resourceVersion: ""

@commjoen
Copy link
Collaborator Author

commjoen commented Sep 19, 2022

Result: it did not work (using chrome as another team to login into the stuff from team target created via firefox):
image

Base automatically changed from awsrun to main September 20, 2022 08:07
@commjoen commjoen merged commit d097d3e into main Sep 21, 2022
@commjoen commjoen deleted the nspfun branch September 21, 2022 17:05
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.

2 participants