mirror of
https://github.com/zitadel/zitadel.git
synced 2025-05-01 05:10:50 +00:00
fix: Key details as string (#719)
* fix: correct env var for tracing type * fix: local env tracing * fix: key in detail as string
This commit is contained in:
parent
46adcf8fe2
commit
463294669e
@ -92,12 +92,12 @@ func addMachineKeyFromModel(key *usr_model.MachineKey) *management.AddMachineKey
|
||||
detail, err := json.Marshal(struct {
|
||||
Type string `json:"type"`
|
||||
KeyID string `json:"keyId"`
|
||||
Key []byte `json:"key"`
|
||||
Key string `json:"key"`
|
||||
UserID string `json:"userId"`
|
||||
}{
|
||||
Type: "serviceaccount",
|
||||
KeyID: key.KeyID,
|
||||
Key: key.PrivateKey,
|
||||
Key: string(key.PrivateKey),
|
||||
UserID: key.AggregateID,
|
||||
})
|
||||
logging.Log("MANAG-lFQ2g").OnError(err).Warn("unable to marshall key")
|
||||
|
Loading…
x
Reference in New Issue
Block a user