#Default secret
1 messages · Page 1 of 1 (latest)
If you want to create a default dummy secret then try this:
@object_type
class Test:
test_secret: dagger.Secret = field(default=lambda: dag.set_secret("dummy", "foobar"))
Basically, you can’t instantiate these types directly. You have to instantiate through the client (dag).
Right, I saw that. I'll try the dummy, that might just work for me