Repository navigation
Conversation
|
I think I understand the desire to create some separation between developer and operator, but I'm worried that this barrier will make the DX and OX worse. And I suspect our developers and operators will often be the same people. Imagining writing pipelines using what you're describing sounds annoying and harder than I think it could/should be. |
Can you write down an example of what you’re imagining? My concern at the moment is with the OX. I give you a CI tool written with Dagger. You want to run it in Github Actions using their native secrets. How? |
I'll spend some time today thinking about this and write up some examples.
In this specific case, the only way to use GitHub Actions secrets is to set them as inputs to an Action or as an environment variable: So, they must be explicitly defined in the GitHub Actions workflow yaml. There aren't any APIs you can call or commands that you can run that will get the secrets from the secrets store. |
It would be better to not have to set the secret twice. But at least it's possible in the current model, so I didn't choose the best example. What's your go-to example @jlongtine where the current OX are not enough? For me it's any situation where the end user wants to configure their own secrets backend, without modifying the source code of the pipeline.
I think there is actually. But that's besides the point, see my point above. |
|
I agree the specifics here aren't really material to the general question around OX, but here's a bit of context around GitHub Secrets:
The docs only show creating, listing, and "getting" secrets: https://docs.github.com/en/rest/actions/secrets?apiVersion=2022-11-28 "get" in this case being defined as:
|
We've discussed using the Europa port as something to learn from. I don't see how I would implement that API. Being able to transform, clean up, and generate new secrets isn't possible (or at least very easy) with the design I'm seeing here. I understand (to some degree) the desire to create some separation of concerns between developer and operator... but it feels like it's quite a large and sharp distinction right now. As someone who has developed these sorts of pipelines before, I feel hindered (not helped) by this design. |
I agree. I think this pattern might make initial adoption of dagger easier, but I still think of the ideal end goal as being able to load secrets via extensions. IMO, the "tip of the pyramid" users will not use Github/Gitlab/etc secrets, they'll use a proper secret store. That secret store will be standard for all pipelines no matter where they're executed, and therefore would most likely be codified in the pipeline |
This used to be a huge problem, definitely; but with the recent SecretOps “movement” it’s much less so. We have:
Doppler can sync secrets to GitHub. Teller can read secrets from anywhere and make them available in the environment, OIDC on GH to Cloud Secret Managers. I don’t think there’s an OX play here, secrets are a core part of the DX and zero-trust and shift left patterns mean developers are part of the security posture now more than ever. |
|
I believe you guys are underestimating the importance of this question of separation of concerns. Secrets have both a DX and OX dimension no matter what we do. Designing the right line between them is very important and difficult- dismissing this will lead to a bad design. I could be wrong, but right now I am feeling confident that I’m not, so I’m going to ride that confidence for a while, and see where it takes us. @rawkode let’s say you want to use 1password for everything on your machine (great choice 😁). You clone an open-source project which contains a bunch of dagger pipelines, some of which require secrets. There are many ways you could arrange for those secrets to come from 1password:
Basically all these options will suck for someone. Before going any further, let’s discuss that statement and how you feel about it 😁 |
|
Perhaps I don't understand the concern as much, I'm struggling to identify the root problem here. Let's look at this. This is my "OpEx" file, that no developer on my platform needs to care about or reason about. It defines a SecretApi. Again, the developers don't need to know what this is - but the README should probably mention that you need to be authenticated with Doppler, but it could be anything. We then create an interface that all jobs within the organisation need to adhere to, which defines the SecretsApi as the second parameter. Now, developers can use I could wrap this up and ship it as an NPM module if I wanted, but in my monorepo it's fine as it is. How do you see this pipeline changing if Dagger provides your version of Secrets management? |
|
This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
215fe62 to
221968b
Compare
Signed-off-by: Solomon Hykes <[email protected]>
221968b to
b348ff7
Compare
|
This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
|
After discussion with @samalba and @aluzzardi , there is a better design coming, so I'm withdrawing this proposal :) |
This is a proposal for a new API that adds supports for #4426, by calling external helpers.
Highlights:
$PATHof the client machine.File { secret }method is deprecated, because it is unsafe.Relevant discussions: