Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions api/types/accessgraph/authorized_key.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ import (
)

const (
authorizedKeyDefaultKeyTTL = 8 * time.Hour
// AuthorizedKeyDefaultKeyTTL is the default TTL for an authorized key.
AuthorizedKeyDefaultKeyTTL = 8 * time.Hour
)

// NewAuthorizedKey creates a new SSH authorized key resource.
Expand All @@ -40,7 +41,7 @@ func NewAuthorizedKey(spec *accessgraphv1pb.AuthorizedKeySpec) (*accessgraphv1pb
Metadata: &headerv1.Metadata{
Name: name,
Expires: timestamppb.New(
time.Now().Add(authorizedKeyDefaultKeyTTL),
time.Now().Add(AuthorizedKeyDefaultKeyTTL),
),
},
Spec: spec,
Expand Down
Loading