HNHacker News
TopNewBestAskShowJobs

CaliforniaKarl

10,031 karma · joined March 4, 2016

Hello! I work at Stanford University, at the Stanford Research Computing Center, as an HPC sysadmin.

I have a blog: https://karl.kornel.us/

My HN handle is also my Twitter handle.

My work email is a!k!kornel@stanford,edu (with ! removed and , corrected).

submissionscomments
CaliforniaKarl··on RegreSSHion: RCE in OpenSSH's server, on glibc-based Linux systems
Ubuntu's also got patches out for 22.04 LTS, 23.10, and 24.04 LTS. See https://ubuntu.com/security/notices/USN-6859-1.

Amazon Linux 2023 is affected; Amazon Linux 1 & 2 are not. Status updates will be posted to https://explore.alas.aws.amazon.com/CVE-2024-6387.html

CaliforniaKarl··on RegreSSHion: RCE in OpenSSH's server, on glibc-based Linux systems
And https://bugzilla.redhat.com/show_bug.cgi?id=2294904 (Fedora 40 issue)

EL 9 is also affected, but not yet released. The tracking task will update as things move along.

CaliforniaKarl··on SSH as a Sudo Replacement
We've got root passwords set on, IIRC, all of our systems. They're long, random, and can only be entered through the console on the VGA port or the IPMI console.
CaliforniaKarl··on SSH as a Sudo Replacement
> You can't even login at failsave console.

Linux consoles (the ttys that appear over local display or remote-access KVM, or the ttyS* devices that appear over serial ports and IPMI SoL) do not use sudo or su. Those consoles use a program like `getty`, or a window-manager; all those programs are non-suid programs that are started as root.

Your system should have a root password set, for logins via console.

CaliforniaKarl··on AWS Lambda Web Adapter
When a Linux process is waiting for a socket to have data ready to read (using a system call like select, poll, or epoll), that process is put into a sleep state by the kernel. It continues accruing “wall-clock time” (“wall time”) but stops accruing CPU time. When the kernel has data for the socket, the process starts running again.

The above tracking method works for containerized things. For virtualized things, it’s different: When a Linux system has nothing to do (all processes sleeping or waiting), the kernel puts the CPU to sleep. The kernel will eventually be woken by an interrupt from something, at which point things continue. In a virtualized environment, the hypervisor can measure how long the entire VM is running or sleeping.

CaliforniaKarl··on The cautionary tale of Huy Fong's hot sauce
I switched to Underwood Ranch’s sriracha sauce, and I enjoy it.
CaliforniaKarl··on Unveiling URI, URL, and URN
UR_:

I: Identifier, is an identifier. "Oh, that's a [a thing, or a location]."

N: Name, tells what the thing is. "Oh, that's the Sears Tower."

L: Locator, tells how to get to something. "Oh, that's at 233 S. Wacker Drive Chicago, Illinois 60606"

That was the second example to come into my head (the first was the Bank of America building in San Francisco), and I think it speaks to things that both* examples have changed their names! The Sears Tower is now the "Willia Tower", and the "Bank of America Center" is now "555 California Street".

And even place names don't stay the same! In 2019, Stanford University renamed "Serra Mall" to "Jane Stanford Way": addresses changed; building names did not.

Just goes to show why it's so important to implement redirects, and (in HTTP at least) why the "301 Moved Permanently" response code exists.

CaliforniaKarl··on Southwest Plane Plunged Within 400 Feet of Ocean Near Hawaii
It’s weather-related, not 737-related.
CaliforniaKarl··on Dark fibre
One example of using dark fiber:

I help run an HPC environment that is spread across two data centers, one on-campus and one off-campus. The campus network is already spread across those two data centers, but the HPC environment also includes a couple of VLANs that are completely private.

So, our connection to the campus network is two 100 GbE campus-network ports in one data center, and I have two dark-fiber circuits (two fiber strands per circuit) from one data center to the other, which carry the private VLANs. One circuit is direct; the other goes via a third building.

The flexibility of the dark-fiber service means I can use the same 100GBASE-LR4 transceivers that I use for the connection to the campus network. I don't have to deal with weird transceivers (like single-strand single-lambda Bi-Directional 100 GbE), or custom wavelengths. UIT Facilities gives me a fusion-spliced and tested pair with an LC jack, and it Just Works™.

CaliforniaKarl··on Ask HN: Who is hiring? (June 2024)
Stanford University IT | Redwood City, CA | Full-time | Three positions | HYBRID

Stanford University IT (https://uit.stanford.edu) provides a large number of IT-related services, from desktop support, to networking, to analog & VoIP telephone, Kerberos, LDAP, AD, RADIUS, O365 & Google & Zoom, email, cloud, and more!

Within UIT, Middleware & Integration Services (MaIS) runs the Registries. Many central & distributed IT systems are fed by the Registries, which take information from disparate sources, and combine them into single views of Organizations, People, Accounts, Courses, Groups, etc.. MaIS provides XML & JSON APIs to interact with the Registries, as well as feeding information into LDAP. They also implement business logic, mapping student and employee careers into account & service lifetimes, group memberships, and more.

MaIS apps are almost exclusively Java (using Spring). Tomcat and the Oracle Application Express (Apex) platforms are used as middlewares. The database is, of course, Oracle (with PL/SQL). Knowing any of the following would be a plus: HTML5, JQuery, shell scripting, and SnapLogic.

MaIS are looking for three people:

• IT Software Developer: You'll be working on existing Registry code, fixing bugs, and implementing enhancements. More information: http://phxc1b.rfer.us/STANFORD28zQlx

• IT Software Developer (Oracle APEX): This is the same as the above position, but is focused more on our webapps than on our backend code. More information: http://phxc1b.rfer.us/STANFORDvMXQlz

• IT Systems Analyst: This is similar to the IT Software Developer, but you'll be spending more time talking with clients within the University, understanding their requirements, and coming up with solutions. More information: http://phxc1b.rfer.us/STANFORDw5aQm0

If you don't already live in the Bay Area, we provide a relocation incentive. Depending on where you live, we provide free transit passes. Unfortunately, if you don't commute, you will have to pay for parking for the days you're on-site (except in Menlo Park). There is some on-call around the holidays. We get a 403(b) match, good healthcare, and 30+ days off per year (holidays + vacation). All Benefits are all publicly documented at https://cardinalatwork.stanford.edu/benefits-rewards.

If you have questions, feel free to reply here or email me (the info is in my profile)!

CaliforniaKarl··on Cybertruck too big for parking spot, and Tesla won't let him return or resell it
Some Japan trivia: To own a vehicle in Japan, you must first obtain a Parking Certificate (Shako Shomeisho). Among other things, it documents & verifies the dimensions of the parking space, to ensure the vehicle will fit. Exceptions may be made if the vehicle is a "Kei car", a small vehicle that fits within prescribed dimensions.
CaliforniaKarl··on Cybertruck too big for parking spot, and Tesla won't let him return or resell it
I wonder if Tesla is aware that such a provision likely would not stand up in court, and decided to put it in anyway, just to dissuade folks from attempting a sale. The threatened ban on access to purchase future vehicles was probably also a problem.
CaliforniaKarl··on Things you wish you didn't need to know about S3
> S3 buckets are the S3 API

> … a relatively small part of the API requires HTTP requests to be sent to generic S3 endpoints (such as s3.us-east-2.amazonaws.com), while the vast majority of requests must be sent to the URL of a target bucket.

I believe this is talking about virtual-hosted style and path-style methods for accessing the S3 API.

From what I can see [0], at least for the REST API, the entire API works either with virtual-hosted style (where the bucket name is in the host part of the URL) and path-style (where the bucket name is in the path part of the URL). Amazon has been wanting folks to move over to the virtual-hosted style for a long time, but (as of 3+ years ago) the deprecation of path-style has been delayed[1].

This deprecation of path-style requests has been extremely important for products implementing the S3 API. For example…

* MinIO uses path-style requests by default, requiring you set a configuration variable[2] (and set up DNS appropriately) to handle the virtual-hosted style.

* Wasabi supports both path-style and virtual-hosted style, but "Wasabi recommends using path-style requests as shown in all examples in this guide (for example, http://s3.wasabisys.com/my-bucket/my-object) because the path-style offers the greatest flexibility in bucket names, avoiding domain name issues."[3].

Now here's the really annoying part: The REST API examples show virtual-hosting style, but path style works too!

For example, take the GetBucketTagging example. Let's say you have bucket "karl123456" in region US-West-2. The example would have you do this:

GET /?tagging HTTP/1.1

Host: karl123456.s3.amazonaws.com

But instead, you can do this:

GET /karl123456?tagging HTTP/1.1

Host: s3.us-west-2.amazonaws.com

!!

How do I know this? I tried it! I constructed a `curl` command do to the path-style request, and it worked! (I didn't use "karl123456", though.)

So hopefully that helps resolve at least one of your S3 annoyances :-)

[0]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAP...

[1]: https://aws.amazon.com/blogs/aws/amazon-s3-path-deprecation-...

[2]: https://min.io/docs/minio/linux/reference/minio-server/setti...

[3]: https://docs.wasabi.com/docs/rest-api-introduction

CaliforniaKarl··on California is about to side with PG&E – again – to kill community solar projects
> This is quite editorialized.

Well, yeah. It's an article in the "Opinion // Editorials" section, by the paper's Editorial Board.

CaliforniaKarl··on California is about to side with PG&E – again – to kill community solar projects
I wonder how many home/commercial/community solar systems (battery-backed or not) have the equipment needed to (a) generate their own 60 Hz sine wave (of good-enough quality to sync to the grid), (b) automatically disconnect from the grid when it loses its connection (to prevent backfeeding during outages), and (c) properly reconnect (including syncing) when the grid comes back.

I remember, at least in the beginning, smaller systems were unable to provide their own sine wave, and would rely on the grid for that. And even today, if full net-metering were in place (with the possibility of export), I would expect the grid to still provide phase synchronization (when solar is not exporting), and a path to other consumers (when solar is exporting).

CaliforniaKarl··on California is about to side with PG&E – again – to kill community solar projects
> On my bill (ISO-NE region/market) there is a separate generation and transmission fee.

Same here, on the Peninsula of the Bay Area: Generation comes from generation owned or contracted by SVCE [0], which is then delivered via PG&E (both transmission and distribution).

Billing is handled by PG&E: My bill has a section for PG&E charges, and a section for SVCE charges. The PG&E section has a generation credit, that effectively removes any costs of non-SVCE power generation, leaving the costs of transmission & distribution.

[0]: https://svcleanenergy.org

CaliforniaKarl··on Guys what is wrong with ACATS
> I absolutely would want the receiving outfit require that I visit my current outfit in person first to authorise such a transfer.

So, about that… The Medallion Signature Guarantee is often obtained from an entity not involved in the transfer. From [0] on my post:

> We do not provide medallion signature guarantees for assets you're transferring out of a Bank of America or Merrill account (guarantees are typically provided by a third party not involved in the transfer or by the firm receiving the assets).

In a way, that's a good thing: By the time you've initiated this transfer, the receiving entity should have done their KYC. And the losing entity probably would not want to take the cost of the liability. Having a third party—one who has had you as a customer for some time—is a good layer of security.

CaliforniaKarl··on Guys what is wrong with ACATS
Reminds me of when I wanted to close my Bank of America account: I didn't know that you needed to make an appointment for that. But indeed, it's my money, I had all the ID-verification paperwork needed, and I was stubborn enough to agree to wait for a clerk to become available.

For what it's worth, you may wish to consider a credit union, as it's less likely that a credit union would also own a brokerage.

CaliforniaKarl··on Guys what is wrong with ACATS
Fun fact about the Medallion Signature Guarantee: It's not a seal or embossment, like it often is for a notarization. Instead, it's a stamp (like what you see on [0]). It's a big stamp, but it's just a stamp.

That's OK, though, because the person making the stamp is keeping a lot of records, so they'll know what they stamped.

When I first got my Treasury Direct[1] account, I couldn't verify my identity using their online process, and so I had to mail in FS Form 5444[1]. My local credit union had "Medallion Service" as one of the reasons for booking an appointment (separate from "Notary"), and they were able to take care of it. As mentioned in the article, the person at the credit union asked me for a monetary value. As it was a new Treasury Direct account, I said "$10,000" (the maximum amount of Series I bonds you can get per calendar year).

And as implied in the article, my credit union had no problems issuing this, even though they were not involved in Treasury Direct in any way.

It's interesting, all the 'little' 'home-grown' ways of identity guarantee that pop up when needed.

[0]: https://www.bankofamerica.com/signature-services/medallion-s...

[1]: https://www.treasurydirect.gov/forms/acctauth.pdf

CaliforniaKarl··on Guys what is wrong with ACATS
Heads-Up for folks trying to get to one of the linked pages:

https://news.bloomberglaw.com/mergers-and-acquisitions/matt-...

You can get to the same content here:

https://www.bloomberg.com/opinion/articles/2023-02-16/the-se...

Which was previously posted to HN here:

https://news.ycombinator.com/item?id=34824986

CaliforniaKarl··on Scandal at America's top science fair
> The child is nothing to be blamed for, it is a 100% problem of the organizers.

I am surprised that the organizers did not catch this, though I don't know enough to know how much time the organizers had.

> For a 17 years old, even throwing together such work is already an worthwhile result. Teens is a golden age of compilation and remixing.

For kids, in general, if one kid makes a claim ("I made this," or "This game cartridge is mine") that turns out to be false, there is generally some sort of comeuppance. That could be as simple as the kid losing respect within their peer group, or it could be as serious as parents being informed about the kid commiting a petty crime.

This is important, because it instills society's values (such as they are) in the child. For example, what if kid A steals a game cartridge from kid B, and then kid B retaliates by shooting and killing kid A? That response is generally frowned upon, in most parts of the world.

In my opinion, it would be fine if "the child" was presenting a poster showing the current state of research in microbial recycling of plastics. That's a cool thing for a high school senior or college freshman to do. But to take existing research (stealing), manipulate images (lying), and cast it as their own work (stealing and lying), on a national stage, that requires an appropriate comeuppance.

CaliforniaKarl··on A transport protocol's view of Starlink
It's unclear to me. `traceroute` typically just returns router IPs, so I'm assuming that "the first IP end point behind the Starlink earth station" is the IP address of a router of some sort.
CaliforniaKarl··on A transport protocol's view of Starlink
One comment about the analysis of ping times in the section "Low Earth Orbit Systems". Specifically, the analysis of ping times "within each 15s satellite tracking interval".

Most routers do not put ping-processing in the "fast path". That is, instead of having the ping be processed by an ASIC, the ping gets processed by the router's CPU. And ping-processing is typically a lower-priority task. Because of that, you can't assume that the high variation in latency is because of Starlink.

CaliforniaKarl··on The Real ID Deadline Will Never Arrive
My friend renewed his Oregon driver's license last year. There was no pressure or push towards a REAL ID. He does not have a passport.

I got a California REAL ID a few years ago, at my normal renewal time, for a few reasons:

1. I already had all of the necessary paperwork.

2. I was curious if the process would be very different (it took a ~5 minutes longer than a non-REAL ID, but that was it).

3. I thought it would count as a List A document on the Form I-9 (https://www.uscis.gov/sites/default/files/document/forms/i-9...)

On that last point, I was wrong: For the Form I-9, a REAL ID counts the same as a driver's license. Turns out, I'm not the only one who thought this (https://sdeahr.org/hr-blog/how-does-real-id-affect-employee-...).

As a result, I'm no longer in support of the REAL ID.

CaliforniaKarl··on The Real ID Deadline Will Never Arrive
It's a superset. In addition to folks who hold a US passport, permanent Residents can get a REAL ID, as can other folks with a foreign passport (in certain situations).

What's more, to get a US passport, you need to provide proof of identity. And for new adult applicants, the most common form of ID is a driver's license!

CaliforniaKarl··on Intel announces the Aurora supercomputer has broken the exascale barrier
Thanks much for the info! Sentiments like that make me hopeful for humanity.
CaliforniaKarl··on Intel announces the Aurora supercomputer has broken the exascale barrier
This isn’t really an upgrade, it’s the system still being commissioned.

See the last paragraph of my post for a link to more info.

CaliforniaKarl··on Haskell during technical interviews – a story (2017)
(2017)
CaliforniaKarl··on Intel announces the Aurora supercomputer has broken the exascale barrier
Case in point, Intel’s discrete consumer GPUs: They’re making major gains with each driver release, and I hope to see them seriously competing with nvidia in the gaming market.
CaliforniaKarl··on Intel announces the Aurora supercomputer has broken the exascale barrier
Most players that had this amount of compute also tend to pay less than the equivalent corporate wage, and so besides being a good way to stress-test your cluster (prior to general availability), it gives you the positive feeling of “I helped make this, I help run this.”
← PreviousPage 8 of 34Next →