Re:Why did Windows 7 log on slower for months if you had a s...
by alex-mohr on Monday April 28, 2025 @11:33PM
(#43828470)
The code in question reminds me a lot of my favorite Kubernetes bug:
Turns out the same meme spans decades.
[ Parent
| on HN ]
Re:Why did Windows 7 log on slower for months if you had a s...
by jve on Tuesday April 29, 2025 @02:13AM
(#43829171)
Where can I read about the bug? And what is the bug? If there is no authenticationData it is authenticated by default or what?
Re:Why did Windows 7 log on slower for months if you had a s...
by DHRicoF on Tuesday April 29, 2025 @03:46AM
(#43829722)
I don't know where you can read about this, but you are in the good track
If there is no authenticationData then the if !Ok is never run and the code continues execution as it were authenticated.
Re:Why did Windows 7 log on slower for months if you had a s...
by alex-mohr on Tuesday April 29, 2025 @01:00PM
(#43835210)
It was in the early days of Kubernetes and long since fixed. I don't recall the precise details, but it was likely the first official CVE we published:
https://kubernetes.io/docs/reference/issues-security/officia...
Link to the patch fixing it: https://github.com/kubernetes/kubernetes/commit/7fef0a4f6a44...
Of course, we'd already fixed other issues like Kubelet listening on a secondary debug port with no authentication. Those problems stemmed from its origins as a make-it-possible hacker project and it took a while to pivot it to something usable in an enterprise.
Re:Why did Windows 7 log on slower for months if you had a s...
by grumpyprole on Tuesday April 29, 2025 @02:18AM
(#43829197)
The way software is built hasn't changed in decades.
Re:Why did Windows 7 log on slower for months if you had a s...
by hulitu on Tuesday April 29, 2025 @12:49PM
(#43835057)
> The way software is built hasn't changed in decades.
Correct. The only thing that changed is the number of level of abstractions.
Re:Why did Windows 7 log on slower for months if you had a s...
by snackbroken on Tuesday April 29, 2025 @04:50AM
(#43830103)
This is a nice example of why one should parse, not validate. If every function that requires some kind of permission takes that permission as an argument, say (pseudocode)
void doFoo(PermissionToDoFoo permission, ...){...}
and then, the only way to call it is through something like from request import getAuth, respond
\\ Maybe<AuthenticationData> getAuth(Request request)
\\ void respond(String response)
from permissions import askForPermissionToDoFoo
\\ Maybe<PermissionToDoFoo> askForPermissionToDoFoo(AuthenticationData auth)
response =
try
auth <- getAuth(request)
permission <- askForPermissionToDoFoo(auth)
doFoo(permission)
"Success!"
fail
"Oopsie!"
respond(response)
It becomes impossible to represent the invalid state of doing Foo without permission.
Re:Why did Windows 7 log on slower for months if you had a s...
by trympet on Tuesday April 29, 2025 @02:40PM
(#43836414)
This is also known as capability-based access control. It was implemented in Project Midori [1] — Microsoft’s flopped managed microkernel OS
[1] - https://en.wikipedia.org/wiki/Midori_(operating_system)