!9IQChSjwSHXPPWTa:lix.systems

Lix

638 Members
Lix user channel. Feel free to discuss on-topic issues here and give each other help. For matrix.to links to the rest of the Lix channels, see: https://wiki.lix.systems/books/lix-organisation/page/matrix-rooms199 Servers

Load older messages


SenderMessageTime
23 Oct 2024
@just1602:systemli.orgjust1602 * I'm clearly not lix knowledgeable enough, I should just refrain from answering people, I'm clearly not helping here.00:32:18
@federicodschonborn:matrix.orgFederico Damián SchonbornI didn't mean to sound rude00:32:33
@just1602:systemli.orgjust1602Oh you didn't sound rude at all !00:32:49
@accelbread:matrix.orgaccelbreadpulling aws-sdk-cpp just for S3 is unfortunate; aws-sdk-cpp has hard dependencies on s2n, aws-libcrypto, aws-sockets, and a bunch of other stuff. I avoid using it if at all possible, and I work for AWS lol05:24:44
@accelbread:matrix.orgaccelbreadthe way its put together also prevents LTO from being effective on it, so statically linking it isn't much help either05:28:52
@accelbread:matrix.orgaccelbreadactually I might be mixing up the aws-device-sdk-cpp and aws-sdk-cpp, nvm. Too many sdks05:30:37
@accelbread:matrix.orgaccelbreadah, both pull in aws-crt-cpp so its both05:38:10
@kfears:matrix.orgKFears (annoying)
In reply to @federicodschonborn:matrix.org
I think the issue is for accessing S3 without the AWS SDK
It's for getting rid of the SDK entirely
07:55:45
@kfears:matrix.orgKFears (annoying)Which is hard to do because CppNix (and by extension Lix, because it hasn't cured this sick code path yet) basically re-exports auth mechanisms from AWS SDK07:57:16
@kfears:matrix.orgKFears (annoying)Including AWS-specific ones like IMDS07:58:33
@kfears:matrix.orgKFears (annoying)So it's a massive pain to rip out SDK before Nix can do pluggable auth, because removing SDK will be a breaking change07:59:33
@kfears:matrix.orgKFears (annoying)Like, accessing S3 without SDK is fairly easy, the issue is that the daemon can't relegate auth to external sources, so it just vendors stuff like IMDS08:00:23
@kfears:matrix.orgKFears (annoying)So ripping out SDK is blocked by getting pluggable and extensible auth, so we have a giant dependency for like no reason08:01:43
@arianvp:matrix.orgArianYeh s3 is easy. Libcurl supports Sigv4 auth these days so can literally just use libcurl08:04:24
@kfears:matrix.orgKFears (annoying)It's quite hard to do well, but maybe if we can do it we'll be able to drop a bomb on DetSys with "we have JWT auth and more without proprietary wrappers or flakehub", which I would love08:04:34
@arianvp:matrix.orgArianAnd auth is a pain in nix anyway as you need both auth on the nix daemon and the current nix process. So AWS is a freaking pain08:04:46
@arianvp:matrix.orgArianI know you like to rant about the detsys stuff but they literally have a PR fixing this exact thing08:05:27
@arianvp:matrix.orgArianWhich I assume they're using for this lol08:05:33
@kfears:matrix.orgKFears (annoying)Yeah, the AWS auth is a monster even when you're not working with 20 years of Eelcode08:05:40
@kfears:matrix.orgKFears (annoying)
In reply to @arianvp:matrix.org
I know you like to rant about the detsys stuff but they literally have a PR fixing this exact thing
Oh, that's nice. Can I have a link?
08:06:22
@arianvp:matrix.orgArianhttps://github.com/NixOS/nix/pull/985708:07:01
@kfears:matrix.orgKFears (annoying)Also yeah, sorry for ranting out of the blue. I am very salty nowadays, probably to a very annoying degree08:07:12
@arianvp:matrix.orgArianAh but this is just for fetchers not substitution08:07:19
@arianvp:matrix.orgArianAh also substitution now08:09:47
@arianvp:matrix.orgArianhttps://github.com/NixOS/nix/pull/9857#issuecomment-1961709992 But yeh I think if we rip out the S3 SDK. And teach the http substituter the --aws-sigv4 flag of curl. Then we're done08:10:43
@arianvp:matrix.orgArianWe can have our S3 Access. And can isolate the AWS SDK in an auth plugin08:11:26
@arianvp:matrix.orgArianAnd then garage can just use a bearer token and not pull in the AWS SDK at all08:12:01
@arianvp:matrix.orgArianFor example08:12:07
@kfears:matrix.orgKFears (annoying)I'm not 100% sure if we want "auth plugins" or something like that08:12:17
@kfears:matrix.orgKFears (annoying)I'll try to put out an issue for this if no one beats me to it08:15:16

Show newer messages


Back to Room ListRoom Version: 10