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

Add GCE fingerprinting functionality #215

Merged
merged 13 commits into from
Oct 12, 2015

Commits on Oct 5, 2015

  1. Fingerprinting code for GCE nodes

    This reads the following:
    
    * hostname
    * instance id
    * machine-type
    * zone
    * internal IP
    * external IP (if any)
    * tags
    * attributes
    
    Atributes are placed under the platform.gce.attr.* hierarchy.
    
    Tags are set up as platform.gce.tag.TagName=true.
    dimfeld committed Oct 5, 2015
    Configuration menu
    Copy the full SHA
    9faa553 View commit details
    Browse the repository at this point in the history
  2. isAWS should return false on GCE

    GCE and AWS both expose metadata servers, and GCE's 404 response
    includes the URL in the content, which maatches the regex. So,
    check the response code as well and if a 4xx code comes back,
    take that to meanit's not AWS.
    dimfeld committed Oct 5, 2015
    Configuration menu
    Copy the full SHA
    444d6f6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    458adfa View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    69ec26e View commit details
    Browse the repository at this point in the history
  5. Consolidate GCEMetadataClient into EnvGCEFingerprint

    This allows easier reuse of the same client across multiple functions.
    dimfeld committed Oct 5, 2015
    Configuration menu
    Copy the full SHA
    983e851 View commit details
    Browse the repository at this point in the history

Commits on Oct 7, 2015

  1. Configuration menu
    Copy the full SHA
    a55bdd3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f985ef4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    79531fe View commit details
    Browse the repository at this point in the history
  4. Parse information for all GCE network interface.

    * No longer setting Device name in the network interface since we can't
    match up the info here with real device names.
    * Add attributes for all external IPs if more than one exists.
    dimfeld committed Oct 7, 2015
    Configuration menu
    Copy the full SHA
    a95cedb View commit details
    Browse the repository at this point in the history

Commits on Oct 9, 2015

  1. Add a few more GCE-specific attributes:

    * cpu-platform
    * scheduling.automatic-restart
    * scheduling.on-host-maintenance
    * network.NETWORKNAME=true
    dimfeld committed Oct 9, 2015
    Configuration menu
    Copy the full SHA
    6acdd9d View commit details
    Browse the repository at this point in the history
  2. GCE fingerprinter no longer updates network resources

    It has nothing to add that the generic fingerprinters aren't
    finding on their own already.
    dimfeld committed Oct 9, 2015
    Configuration menu
    Copy the full SHA
    203906b View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2015

  1. Configuration menu
    Copy the full SHA
    c43978b View commit details
    Browse the repository at this point in the history
  2. More syntax cleanup

    dimfeld committed Oct 12, 2015
    Configuration menu
    Copy the full SHA
    263c5f5 View commit details
    Browse the repository at this point in the history