Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

IDN resolution doesn't work. #12

Closed
thesmiler opened this issue Mar 4, 2021 · 5 comments · Fixed by #14
Closed

IDN resolution doesn't work. #12

thesmiler opened this issue Mar 4, 2021 · 5 comments · Fixed by #14
Labels
bug Something isn't working documentation Improvements or additions to documentation
Milestone

Comments

@thesmiler
Copy link
Contributor

The following FQDNNetowrkPolicy:

apiVersion: networking.gke.io/v1alpha1
kind: FQDNNetworkPolicy
metadata:
  name: fqdnnetworkpolicy-v6
spec:
  podSelector: {}
  egress:
    - to:
      - fqdns:
        - ipv6.kühlers.com
        - dualstack.kühlers.com
      ports:
      - port: 443
        protocol: TCP

creates the following network policy:

apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  annotations:
    fqdnnetworkpolicies.networking.gke.io/owned-by: fqdnnetworkpolicy-v6
  creationTimestamp: "2021-03-04T15:31:13Z"
  generation: 1
  managedFields:
  - apiVersion: networking.k8s.io/v1
    fieldsType: FieldsV1
    fieldsV1:
      f:metadata:
        f:annotations:
          .: {}
          f:fqdnnetworkpolicies.networking.gke.io/owned-by: {}
      f:spec:
        f:policyTypes: {}
    manager: manager
    operation: Update
    time: "2021-03-04T15:31:13Z"
  name: fqdnnetworkpolicy-v6
  namespace: default
  resourceVersion: "32427619"
  selfLink: /apis/networking.k8s.io/v1/namespaces/default/networkpolicies/fqdnnetworkpolicy-v6
  uid: 1850667c-73f5-4f71-aed3-e26b17dc3ee0
spec:
  podSelector: {}
  policyTypes:
  - Egress

So IDN resolution doesn't seem to function properly.
This needs to be at least documented, it might be too complex to fix.

@thesmiler thesmiler changed the title IDN doesn't work. IDN resolution doesn't work. Mar 4, 2021
@thesmiler thesmiler added bug Something isn't working documentation Improvements or additions to documentation labels Mar 4, 2021
@MrTrustor
Copy link
Member

uh. This seems to work on KIND but not on GKE. Can you help figure out why?

@thesmiler
Copy link
Contributor Author

It didn't work on KIND for me. Maybe it depends on the locale of your machine or something?

@thesmiler
Copy link
Contributor Author

what do you have as locale on your machine? I have everything set to en_US.UTF-8

@MrTrustor
Copy link
Member

On my mac I have:

$ locale
LANG=""
LC_COLLATE="C"
LC_CTYPE="UTF-8"
LC_MESSAGES="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_ALL=

Screenshot 2021-03-12 at 16 23 24

Have you tested with the patch from #11 ?

@thesmiler thesmiler linked a pull request Mar 17, 2021 that will close this issue
@thesmiler
Copy link
Contributor Author

I could not manage to get this working, it is somehow related to locale and inside the controller we use a very minimal image

@MrTrustor MrTrustor added this to the 0.2 milestone Mar 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants