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

Instrumentation Key validation #1340

Merged
merged 4 commits into from
Aug 19, 2020
Merged

Instrumentation Key validation #1340

merged 4 commits into from
Aug 19, 2020

Conversation

kryalama
Copy link
Contributor

@kryalama kryalama commented Aug 6, 2020

Specs taken from breeze repo(https://dev.azure.com/msazure/One/_git/Mgmt-AppInsights-Breeze)
The definition of a VALID instrumentation key is as follows:
Not none
Not empty
Every character is a hex character [0-9a-f]
32 characters are separated into 5 sections via 4 dashes
First section has 8 characters
Second section has 4 characters
Third section has 4 characters
Fourth section has 4 characters
Fifth section has 12 characters

As of now we are throwing an internal error of severity 'Critical'. This will not break existing users test cases with invalid ikey.
Also customers can disable ikey validation using disableInstrumentaionKeyValidation config set to true.

@kryalama kryalama requested a review from a team as a code owner August 6, 2020 21:53
@kryalama kryalama merged commit b51a6b1 into master Aug 19, 2020
@MSNev MSNev added this to the 2.5.8 milestone Aug 27, 2020
@MSNev MSNev deleted the iKeyValidation branch August 4, 2021 19:41
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.

3 participants