Skip to content

Commit

Permalink
Merge pull request #99 from rsharifnasab/main
Browse files Browse the repository at this point in the history
Remove sensetive data from tracing
  • Loading branch information
1995parham authored Oct 14, 2024
2 parents 5db2880 + 95cdbe9 commit 2043c8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
6 changes: 0 additions & 6 deletions internal/api/acl.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@ func (a API) ACLv1(c *fiber.Ctx) error {
span.SetAttributes(
attribute.String("access", request.Access.String()),
attribute.String("topic", request.Topic),
attribute.String("token", request.Token),
attribute.String("username", request.Username),
attribute.String("password", request.Password),
attribute.String("authenticator", auth.GetCompany()),
)

Expand Down Expand Up @@ -152,9 +149,6 @@ func (a API) ACLv2(c *fiber.Ctx) error {
span.SetAttributes(
attribute.String("access", request.Action),
attribute.String("topic", request.Topic),
attribute.String("token", request.Token),
attribute.String("username", request.Username),
attribute.String("password", request.Password),
attribute.String("authenticator", auth.GetCompany()),
)

Expand Down
14 changes: 2 additions & 12 deletions internal/api/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,7 @@ func (a API) Authv1(c *fiber.Ctx) error {

auth := a.Authenticator(vendor)

span.SetAttributes(
attribute.String("token", request.Token),
attribute.String("username", request.Username),
attribute.String("password", request.Password),
attribute.String("authenticator", auth.GetCompany()),
)
span.SetAttributes(attribute.String("authenticator", auth.GetCompany()))

err := auth.Auth(token)
if err != nil {
Expand Down Expand Up @@ -114,12 +109,7 @@ func (a API) Authv2(c *fiber.Ctx) error {

auth := a.Authenticator(vendor)

span.SetAttributes(
attribute.String("token", request.Token),
attribute.String("username", request.Username),
attribute.String("password", request.Password),
attribute.String("authenticator", auth.GetCompany()),
)
span.SetAttributes(attribute.String("authenticator", auth.GetCompany()))

err := auth.Auth(token)
if err != nil {
Expand Down

0 comments on commit 2043c8b

Please sign in to comment.