-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Conversation
CI Results: |
8b13ff5
to
d279175
Compare
d279175
to
a9e1b2d
Compare
0caaed9
to
a9e1b2d
Compare
…)" This reverts commit 550c99a.
Build Results: |
There was a problem hiding this 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.
version/version.go
Outdated
@@ -23,6 +23,9 @@ func GetVersion() *VersionInfo { | |||
if GitDescribe != "" { | |||
ver = GitDescribe | |||
} | |||
if GitDescribe == "" && rel == "" && VersionPrerelease != "" { |
There was a problem hiding this comment.
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.
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.