I presume you're referring to API access? I wasn't around when the initial API and access control stuff was designed (it's inherited from snapd), but here's my understanding of how it works. The bulk of the API is exposed using HTTP-over-unix-socket, so is only accessible if you have permission to access the unix socket file. The access control handling code is at https://github.com/canonical/pebble/blob/727a82ae61756dca123d4e3a4b5d99b78f6e4bd8/internal/daemon/daemon.go#L153
There are a couple of API endpoints exposed via ordinary HTTP-over-TCP if you specify the "-http" command line arg, but those are very narrow, basically the "health" endpoint which returns true/false. See the two "GuestOK: true" endpoints here: https://github.com/canonical/pebble/blob/727a82ae61756dca123d4e3a4b5d99b78f6e4bd8/internal/daemon/api.go#L27 We use Pebble mostly in a Kubernetes context with a sidecar container in the pod talking to Pebble in another container in the same pod. This is done via the unix socket file in the Pebble container which is mounted in the sidecar container. People outside the pod can only access the GuestOK health endpoint (we use this for Kubernetes probes). Thanks for taking a look. We may well be missing something! -Ben On Thu, Nov 24, 2022 at 10:41 AM Robert Engels <reng...@ix.netcom.com> wrote: > I took a look at Pebble. I don’t see anything related to auth and > credentials and it seems like a huge back door security hole. > > Did I miss something? > > On Nov 23, 2022, at 3:20 PM, ben...@gmail.com <benh...@gmail.com> wrote: > > > Part of my day job is working on Canonical's "Pebble" ( > https://github.com/canonical/pebble), a simple service manager written in > Go. Unique features: layered configuration, and an HTTP-over-unix-socket > API. It's GPLv3 licensed. > > -Ben > > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAL9jXCEYnaZtuZFJC%3Da0mUXo6dU3ze6j89MEKGHWuvk3HEhC6g%40mail.gmail.com.