Skip to content

Commit

Permalink
Add tokens and ApiTokens secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
Alvaro-Campesino authored and hoto committed Apr 9, 2024
1 parent c997a8a commit ec1ece0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/printer/printer.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (

type Credential struct {
AccessKey string `json:"accessKey,omitempty"`
ApiToken string `json:"apiToken,omitempty"`
Description string `json:"description,omitempty"`
FileName string `json:"fileName,omitempty"`
IamMfaSerialNumber string `json:"iamMfaSerialNumber,omitempty"`
Expand All @@ -28,6 +29,7 @@ type Credential struct {
SecretBytes string `json:"secretBytes,omitempty"`
SecretId string `json:"secretId,omitempty"`
SecretKey string `json:"secretKey,omitempty"`
Token string `json:"token,omitempty"` // Added token field
Username string `json:"username,omitempty"`
}

Expand Down Expand Up @@ -61,6 +63,8 @@ func printJson(decryptedCredentials []xml.Credential) {
t := credential.Tags
temp := Credential{
AccessKey: t["accessKey"],
ApiToken: t["apiToken"],
Token: t["token"],
Description: t["description"],
FileName: t["fileName"],
IamMfaSerialNumber: t["iamMfaSerialNumber"],
Expand Down

0 comments on commit ec1ece0

Please sign in to comment.