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

bug: Fix Potential Nil Reference in GetLabels Implementation #24416

Merged

Commits on Mar 16, 2023

  1. bug: Fix Potential Nil Reference in GetLables Implementation

    The policyIdentityLabelLookup wrapper for Endpoint implements
    the GetLabels interface method. This is necessary for the
    constructing the MapState of the policy engine. This implementation
    incorrectly did not check if the identity returned by LookupIdentityByID
    was nil. This fixes this bug, which heretofore has not caused any issues.
    
    Signed-off-by: Nate Sweet <nathanjsweet@pm.me>
    nathanjsweet committed Mar 16, 2023
    Configuration menu
    Copy the full SHA
    429591a View commit details
    Browse the repository at this point in the history