mirror of
https://github.com/zitadel/zitadel.git
synced 2025-05-02 08:50: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 {
|
detail, err := json.Marshal(struct {
|
||||||
Type string `json:"type"`
|
Type string `json:"type"`
|
||||||
KeyID string `json:"keyId"`
|
KeyID string `json:"keyId"`
|
||||||
Key []byte `json:"key"`
|
Key string `json:"key"`
|
||||||
UserID string `json:"userId"`
|
UserID string `json:"userId"`
|
||||||
}{
|
}{
|
||||||
Type: "serviceaccount",
|
Type: "serviceaccount",
|
||||||
KeyID: key.KeyID,
|
KeyID: key.KeyID,
|
||||||
Key: key.PrivateKey,
|
Key: string(key.PrivateKey),
|
||||||
UserID: key.AggregateID,
|
UserID: key.AggregateID,
|
||||||
})
|
})
|
||||||
logging.Log("MANAG-lFQ2g").OnError(err).Warn("unable to marshall key")
|
logging.Log("MANAG-lFQ2g").OnError(err).Warn("unable to marshall key")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user