Signed-off-by: Anirudh Oppiliappan anirudh@tangled.sh
+3
-1
spindle/xrpc/add_secret.go
+3
-1
spindle/xrpc/add_secret.go
···
4
"encoding/json"
5
"fmt"
6
"net/http"
7
8
"github.com/bluesky-social/indigo/api/atproto"
9
"github.com/bluesky-social/indigo/atproto/syntax"
···
76
Repo: secrets.DidSlashRepo(didPath),
77
Key: data.Key,
78
Value: data.Value,
79
CreatedBy: actorDid,
80
}
81
-
err = x.Vault.AddSecret(secret)
82
if err != nil {
83
l.Error("failed to add secret to vault", "did", actorDid.String(), "err", err)
84
writeError(w, GenericError(err), http.StatusInternalServerError)
···
4
"encoding/json"
5
"fmt"
6
"net/http"
7
+
"time"
8
9
"github.com/bluesky-social/indigo/api/atproto"
10
"github.com/bluesky-social/indigo/atproto/syntax"
···
77
Repo: secrets.DidSlashRepo(didPath),
78
Key: data.Key,
79
Value: data.Value,
80
+
CreatedAt: time.Now(),
81
CreatedBy: actorDid,
82
}
83
+
err = x.Vault.AddSecret(r.Context(), secret)
84
if err != nil {
85
l.Error("failed to add secret to vault", "did", actorDid.String(), "err", err)
86
writeError(w, GenericError(err), http.StatusInternalServerError)
+1
-1
spindle/xrpc/list_secrets.go
+1
-1
spindle/xrpc/list_secrets.go
+1
-1
spindle/xrpc/remove_secret.go
+1
-1
spindle/xrpc/remove_secret.go