Skip to content

Commit

Permalink
Annotations: Fix path joining.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gacko committed Jan 20, 2025
1 parent bc07f35 commit ca51596
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/ingress/annotations/auth/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package auth
import (
"fmt"
"os"
"path/filepath"
"regexp"
"strings"

Expand Down Expand Up @@ -203,7 +204,7 @@ func (a auth) Parse(ing *networking.Ingress) (interface{}, error) {
return nil, err
}

passFilename := fmt.Sprintf("%v/%v-%v-%v.passwd", a.authDirectory, ing.GetNamespace(), ing.UID, secret.UID)
passFilename := filepath.Join(a.authDirectory, fmt.Sprintf("%v-%v-%v.passwd", ing.GetNamespace(), ing.UID, secret.UID))

switch secretType {
case fileAuth:
Expand Down

0 comments on commit ca51596

Please sign in to comment.