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

Custom RequestHeaders Field for Zero Trust has hyphens in it #102

Open
dark1587 opened this issue Apr 14, 2022 · 0 comments
Open

Custom RequestHeaders Field for Zero Trust has hyphens in it #102

dark1587 opened this issue Apr 14, 2022 · 0 comments

Comments

@dark1587
Copy link

The schema that's provided here does not include any headers used by Cloudflare Access (namely, RequestHeaders. This is known and addressed here.

However, I cannot add this to the BigQuery Schema easily, as the RequestHeaders isn't mentioned in the default schema, so I'm trying to hack around it by adding it manually inside the BigQuery Console.

This (I think) uses a RECORD data type, which requires nested fields to be added. But, FieldNames cannot have dashes (-) in them, only alphanumeric/underscore characters.

But the field I need to add to store usernames is cf-access-user (technically RequestHeaders.cf-access-user) has dashes... so in essence I cannot add in this field to BigQuery, unless I figure out some sort of magic to automatically convert the dashes into another name (to which, I'm having a heck of a time doing because I'm a newbie at BQ).

Any advice/insight you can provide would be extremely helpful.

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

No branches or pull requests

1 participant