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

Implement /api/v1/version for rekor-server #569

Merged
merged 2 commits into from
Dec 27, 2021

Commits on Dec 27, 2021

  1. rekor-server: Implement /api/v1/version

    This implements a version endpoint for rekor. This helps figure out the
    version the server is currently running. It could later be used to
    implement version compatibility with CLI utilities.
    
    Example:
       λ rekor main» curl -s localhost:3000/api/v1/version | jq
       {
         "builddate": "'2021-12-27T13:20:32Z'",
         "commit": "12d1a47c7ac986932a2734cb855c642ac01ffde4",
         "treestate": "dirty",
         "version": "v0.4.0-15-g12d1a47-dirty"
       }
    
    This removes some duplication of the build flags and inserts them into
    /pkg/api which is then reused across the utilities.
    
    Signed-off-by: Morten Linderud <[email protected]>
    
    Signed-off-by: Morten Linderud <[email protected]>
    Foxboron committed Dec 27, 2021
    Configuration menu
    Copy the full SHA
    c222cf7 View commit details
    Browse the repository at this point in the history
  2. Generated files

    Signed-off-by: Morten Linderud <[email protected]>
    Foxboron committed Dec 27, 2021
    Configuration menu
    Copy the full SHA
    cfe0837 View commit details
    Browse the repository at this point in the history