From 451fb320433f3e6e459d1dc4ec0588184b7337aa Mon Sep 17 00:00:00 2001 From: John ODonnell Date: Wed, 28 Apr 2021 09:37:26 -0400 Subject: [PATCH] Add API Version to status page --- CHANGELOG.md | 2 ++ app/views/status/index.html.erb | 1 + config/initializers/status.rb | 1 + 3 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a2fff3cf7..d8d5ac8179 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - File `API_VERSION` containing the current Conjur API Version, which corresponds to a release of the [Conjur OpenAPI Spec](https://github.com/cyberark/conjur-openapi-spec). [cyberark/conjur#2086](https://github.com/cyberark/conjur/pull/2086) +- Status page details section now displays the Conjur API version. + [cyberark/conjur#2130](https://github.com/cyberark/conjur/issues/2130) ## [1.11.5] - 2021-04-05 diff --git a/app/views/status/index.html.erb b/app/views/status/index.html.erb index c9de2ca3fb..a60957aae3 100644 --- a/app/views/status/index.html.erb +++ b/app/views/status/index.html.erb @@ -57,6 +57,7 @@
Details:
Version <%= ENV["CONJUR_VERSION_DISPLAY"] %>
+
API Version "><%= ENV["API_VERSION"] %>
More Info:
    diff --git a/config/initializers/status.rb b/config/initializers/status.rb index 9eaac28eed..c4fef7dcf5 100644 --- a/config/initializers/status.rb +++ b/config/initializers/status.rb @@ -3,3 +3,4 @@ require 'logs' ENV["CONJUR_VERSION_DISPLAY"] = File.read(File.expand_path("../../VERSION", File.dirname(__FILE__))) +ENV["API_VERSION"] = File.read(File.expand_path("../../API_VERSION", File.dirname(__FILE__)))