Skip to content

Commit

Permalink
Add API Version to status page
Browse files Browse the repository at this point in the history
  • Loading branch information
john-odonnell committed Apr 28, 2021
1 parent 64dd613 commit 451fb32
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions app/views/status/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
<dl>
<dt>Details:</dt>
<dd>Version <%= ENV["CONJUR_VERSION_DISPLAY"] %></dd>
<dd>API Version <a href="https://github.com/cyberark/conjur-openapi-spec/releases/tag/v<%= ENV["API_VERSION"] %>"><%= ENV["API_VERSION"] %></a>
<dt>More Info:</dt>
<dd>
<ul>
Expand Down
1 change: 1 addition & 0 deletions config/initializers/status.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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__)))

0 comments on commit 451fb32

Please sign in to comment.