mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
change session duration to 5 days (#4480)
This commit is contained in:
parent
ff0ebaab7d
commit
1aa7b96837
4 changed files with 4 additions and 4 deletions
1
changes/issue-3928-increase-session-duration
Normal file
1
changes/issue-3928-increase-session-duration
Normal file
|
|
@ -0,0 +1 @@
|
|||
* Increase default session duration to 5 days
|
||||
|
|
@ -61,5 +61,4 @@ func applyDevFlags(cfg *config.FleetConfig) {
|
|||
cfg.Mysql.Username = "fleet"
|
||||
cfg.Mysql.Database = "fleet"
|
||||
cfg.Mysql.Password = "insecure"
|
||||
cfg.Session.Duration = 7 * 24 * time.Hour
|
||||
}
|
||||
|
|
|
|||
|
|
@ -395,7 +395,7 @@ func (man Manager) addConfigs() {
|
|||
// Session
|
||||
man.addConfigInt("session.key_size", 64,
|
||||
"Size of generated session keys")
|
||||
man.addConfigDuration("session.duration", 24*time.Hour,
|
||||
man.addConfigDuration("session.duration", 24*5*time.Hour,
|
||||
"Duration session keys remain valid (i.e. 4h)")
|
||||
|
||||
// Osquery
|
||||
|
|
@ -943,7 +943,7 @@ func TestConfig() FleetConfig {
|
|||
},
|
||||
Session: SessionConfig{
|
||||
KeySize: 64,
|
||||
Duration: 24 * 90 * time.Hour,
|
||||
Duration: 24 * 5 * time.Hour,
|
||||
},
|
||||
Osquery: OsqueryConfig{
|
||||
NodeKeySize: 24,
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ package fleet
|
|||
|
||||
import "time"
|
||||
|
||||
// Createable contains common timestamp fields indicating create time
|
||||
// CreateTimestamp contains common timestamp fields indicating create time
|
||||
type CreateTimestamp struct {
|
||||
CreatedAt time.Time `json:"created_at" db:"created_at"`
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue