Better HN
topnewbestaskshowjobs
Log inSign up

antoniomika

368 karma · joined Aug 18, 2015 (11y ago) · 78 submissions

https://antonio.cx

[ my public key: https://keybase.io/antoniomika; my proof: https://keybase.io/antoniomika/sigs/LlYvMqpjWk7dbyijNgU-BLt6pqbTGLzewD_mmwAWr9E ]

Submissions

comment 1w ago · link · parent

If the secret doesn’t exist on the host (or your password vault) where you’re running docker, how do you get it into docker? Even —-ref support requires the utility (op for example).

comment 1w ago · link · parent

It just serves a different use case. The whole goal of lend is to make a command on my local computer available to a remote system. Whether or not it’s an agent, still doesn’t matter to lend.

The largest unlock is running a command that only exists on my laptop on a remote in a secure manner. I get to choose which commands are allowed and see whenever they’re used. If I’m not expecting to see a usage, then I can dig into it.

The agent safety and injection mechanism is a by product.

comment 1w ago · link · parent

Loading the secrets into a remote machine is still a requirement here. I do make use of docker sandboxes, but they serve different purposes imo.

Lend allows me to SSH into a machine and run commands I don’t even have installed there. That’s the other benefit here.

comment 1w ago · link · parent

It's pretty easy to inject the credentials into a simple http proxy for this. Might have to look into adding direct support for it to lend.

comment 1w ago · link · parent

Truthfully, I tend to agree with you. I built lend mainly for the fact that I like ssh tools a lot (feel free to check my other projects) and have always wanted a way to run local commands without having to setup reverse ssh when I don't need to run sshd on my laptop.

For example, I store k8s credentials in 1pass and the cluster is only accessible via the network on my remote machine. I can grab the credentials from my laptop for the work I want to do on the remote, and never have to install 1pass on the remote machine.

Primary use case for lend wasn't agents when I started the project. It just was natural to add support for it after the fact.

6.

Running coding agents without handing them my credentials(blog.antonio.cx ↗)

134 points · by antoniomika · 1w ago · 120 comments

7.

Pico.sh fall update: native rsync, Git-push deploys, UDP tunnels(blog.pico.sh ↗)

4 points · by antoniomika · 1w ago · 1 comment

comment 1mo ago · link · parent

Was looking for something like this but stumbled upon herdr-web-ui [0] first. They seem to do the same thing, but herdr-web-ui is completely free and self hosted and sets up as a PWA with webpush support. Seems to work decently well and it’s under heavy development. Will have to try this too!

[0] https://github.com/devswha/herdr-web-ui

comment 1mo ago · link · parent

A number of years ago, I created a fully open source (MIT) project called sish [0] that does just this.

sish is a SSH server written specifically for tunneling. You get all of the benefits of SSH, but also automatic TLS, a web console of requests a tunnel has received, and various other features. You can also tunnel more than just HTTP(S). You can tunnel websockets, TCP connections, and even have internal alias connections for using ProxyJump within the tunnel. All stateless and all protected with SSH auth.

If you’re not interested in self hosting, there’s a hosted version at tuns.sh [1] that has multi region support and a few other cool features (including UDP tunneling) as part of the pico.sh [2] membership ($2/mo). Happy to answer any questions in this space!

[0] https://github.com/antoniomika/sish

[1] https://tuns.sh

[2] https://pico.sh

comment 7mo ago · link · parent

We added SSH certificates support to pico.sh [1] and it's been great. Utilizing principals gave us the ability to implement a RBAC like system for specific parts of the pico.sh ecosystem. Users get the flexibility they want with limited complexity.

[1] https://pico.sh/access-control#ssh-certificates

comment 1y ago · link · parent

Currently, you can either provide the `BORG_REPO_PERMISSIONS` env var to borg [0] or `--permissions` flag to `borg serve` [1]. You can then enforce this as part of your `authorized_keys` command, for example.

[0] https://github.com/borgbackup/borg/blob/3cf8d7cf2f36246ded75...

[1] https://github.com/borgbackup/borg/blob/3cf8d7cf2f36246ded75...

comment 1y ago · link · parent

This has been replaced with a permissions feature that still provides both delete and overwrite protections. The difference is the underlying store needs to implement it rather than running a server that understands the permission differences. You can read more about this change here: https://github.com/borgbackup/borg/issues/8823#issuecomment-...

comment 1y ago · link · parent

Check out sysbox[0], it's a runc based runtime that allows you to run "system" containers without privilege.

[0]: https://github.com/nestybox/sysbox

comment 1y ago · link · parent

Yep! tuns would be the service you want since it can support forwarding arbitrary backends: https://pico.sh/tuns#custom-domains

comment 1y ago · link · parent

We’re actually using Unix sockets as the underlying transport layer for this. We’re also not using sshd, we custom wrote our own daemon that’s entire job is tunneling. If you’re curious about this, you can find the project here: https://github.com/antoniomika/sish

sish was actually my first foray into SSH apps. It was a lot of fun to write and pretty much implements tunnels with a routing system on top. It manages connectivity, routing, and reverse proxying all within user space. No namespaces required!

tuns can actually even tunnel UDP traffic over SSH, also entirely in user space. Docs for that can be found here: https://pico.sh/tuns#udp-tunneling

comment 1y ago · link · parent

We're actually fully open source and all development occurs in the open! Here's the repo https://github.com/picosh/pico and you can find us on Libera IRC

comment 1y ago · link · parent

Hrm that's odd! Just tested and everything looks fine. Any logs or errors you can share?

comment 1y ago · link · parent

Our host keys are published here and are durable: https://pico.sh/host-keys

comment 1y ago · link · parent

Ashburn, VA and Nuremberg, DE!

comment 1y ago · link · parent

Woops! Delete is supported, will update that as well

comment 1y ago · link · parent

Correct! The tunnels are protected using ssh auth as well, so you can ensure that only the users you want to access it can.

comment 1y ago · link · parent

I'd actually highly recommend taking a look at vaxis (https://github.com/rockorager/vaxis). We've moved away from wish/bubbletea and have really enjoyed working with vaxis!

comment 1y ago · link · parent

Sorry, this is a focus issue with a tui which we'll fix up soon! Should just need to hit <tab> until OK is highlighted and then press enter

comment 1y ago · link · parent

We recently changed our tui framework and the functionality for focus is a bit different. You might have to hit <tab> until `ADD` is highlighted. You can also rsync/scp/sftp an authorized_keys file and we'll add that to your account!

comment 1y ago · link · parent

And we're still free! Just added some payments to help keep things running smoothly and allow us to invest in more infrastructure. pgs (static sites) and tuns (tunneling) are both multi-region for example.

comment 1y ago · link · parent

And we'd be happy for you too! All of our code/tools are open source and available here: https://github.com/picosh/pico

27.

Bluesky over SSH(termsky.app ↗)

5 points · by antoniomika · 1y ago · discuss

comment 2y ago · link · parent

Honestly never had a chance to merge it/review it. Once the company wound down, I had to move onto other things (find a new job, work on other priorities, etc) and lost access to be able to do anything with it after. I thought about forking it and modernizing it but never came to fruition.

comment 2y ago · link · parent

I wrote a system that did this >5 years ago (luckily was able to open source it before the startup went under[0]). The bastion would record ssh sessions in asciicast v2 format and store those for later playback directly from a control panel. The main issue that still isn't solved by a solution like this is user management on the remote (ssh server) side. In a more recent implementation, integration with LDAP made the most sense and allows for separation of user and login credentials. A single integrated solution is likely the holy grail in this space.

[0] https://github.com/notion/bastion

comment 2y ago · link · parent

Nope! I utilize env files for all of my password/privileged settings. In the command entry for docker-compose.yml, you can then use a non-templated env var (one that docker-compose itself doesn't fill) by replacing a single dollar sign with two. That then loads the credential from the environment instead of command line.
123