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

[Feature] Access to hostMetadata for custom hostnames using the CF Struct #347

Open
1 task done
mettke opened this issue Jun 30, 2023 · 0 comments · May be fixed by #348
Open
1 task done

[Feature] Access to hostMetadata for custom hostnames using the CF Struct #347

mettke opened this issue Jun 30, 2023 · 0 comments · May be fixed by #348

Comments

@mettke
Copy link

mettke commented Jun 30, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Description

We are using Cloudflare Custom Hostnames and we are assigning hostMetadata to these hostnames to be able to get information about the project. Unfortunately its currently not possible to get this information from the Cf Struct and it would be very nice if we can add this.

Example Structure:

{
    "clientTcpRtt": 0,
    "longitude": "...",
    "latitude": "...",
    "tlsCipher": "...",
    "continent": "...",
    "asn": 0,
    "clientAcceptEncoding": "...",
    "country": "...",
    "isEUCountry": "",
    "tlsClientAuth": {},
    "postalCode": "...",
    "tlsExportedAuthenticator": {},
    "tlsVersion": "TLSv1.3",
    "city": "...",
    "timezone": "...",
    "hostMetadata": {
        "domain": "custom_data"
    },
    "colo": "...",
    "edgeRequestKeepAliveStatus": 1,
    "requestPriority": "...",
    "botManagement": {},
    "clientTrustScore": 0,
    "region": "...",
    "regionCode": "...",
    "asOrganization": "...",
    "httpProtocol": "HTTP/2"
}

What needs to be done:

@mettke mettke linked a pull request Jun 30, 2023 that will close this issue
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 a pull request may close this issue.

1 participant