I wiped my SSD when I sent my MacBook in.
The Apple staff told me that I could have created another admin account with the password "apple" for them instead, except when I tested that option, it could access my files anyway.
Still pretty bad, though. Too much valuable information in "regular" files. If possible, I always wipe devices before bringing them in for service. (Good reminder to have some kind of regular backup plan.)
(Of course, Apple could roll out a rogue macOS/sepOS, but they could do that at any time.)
But you know, my Daughter still takes my OG Moto G with her when needed (from 2013, just got a message on it that next year they'll turn of 2G and it can't be on a network anymore). So perhaps I'm not your typical tech user ;)
That being said - each user's keychain is encrypted using their account password. You can't read another user's keychain without knowing their password.
Is this still the case? I used to wipe all devices before repair at the Apple Store, but that has become too inconvenient and impractical. I'd rather suffer with a broken device.
I felt so bad that I did it, there went my whole personal life, so may people I don't know who could then touch it. I vouched never to do it again. But there is this "officialness" that persuades you in the moment.
Here it may have felt like that, but there is also a toxic power-imbalance if they ask your LI account password and you feel like you have to comply. Huge red flag. Let us all learn from this. A line must be drawn and you need to learn where by going over it sometimes.