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

Remove internal version endpoint #25998

Merged
merged 5 commits into from
Mar 21, 2024

Conversation

hashishaw
Copy link
Contributor

@hashishaw hashishaw commented Mar 18, 2024

This PR removes the sys/internal/ui/version endpoint and its usage within the UI as part of the Reduced Disclosure work.

The UI keeps all of the functionality from #24262 but uses an authenticated call to the sys/seal endpoint once to get the version information.

  • Ent tests pass

@hashishaw hashishaw added this to the 1.16.0 milestone Mar 18, 2024
@github-actions github-actions bot added the hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed label Mar 18, 2024
Copy link

github-actions bot commented Mar 18, 2024

CI Results:
All Go tests succeeded! ✅

@divyaac divyaac marked this pull request as ready for review March 20, 2024 16:59
@divyaac divyaac requested a review from a team as a code owner March 20, 2024 16:59
@divyaac divyaac requested review from marcboudreau and removed request for a team March 20, 2024 16:59
Copy link

github-actions bot commented Mar 20, 2024

Build Results:
All builds succeeded! ✅

Copy link
Contributor

@marcboudreau marcboudreau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved conditionally: I pointed out two changes that are being reverted that should be kept.

@@ -23,6 +23,9 @@ func GetVersion() *VersionInfo {
if GitDescribe != "" {
ver = GitDescribe
}
if GitDescribe == "" && rel == "" && VersionPrerelease != "" {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change shouldn't be reintroduced. When going through this file as part of introducing the sys/internal/ui/version path, I discovered that it was impossible for the condition on line 26 to be true. Because it requires VersionPrerelease to be not empty and rel to be empty. However, rel is initialized with the VersionPrerelease value above, so it would require rel to be a Schrödinger variable in order for the condition to be true.

@divyaac divyaac merged commit 6091ad4 into main Mar 21, 2024
89 checks passed
@divyaac divyaac deleted the VAULT-25018/remove-internal-version-endpoint branch March 21, 2024 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed pr/no-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants