Skip to content

Commit 0f228be

Browse files
authored
Merge pull request #3505 from gravitl/v0.99_fixes
V0.99 fixes
2 parents a6ad252 + 9804366 commit 0f228be

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

controllers/node.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ func Authorize(
178178
// check if host instead of user
179179
if hostAllowed {
180180
// TODO --- should ensure that node is only operating on itself
181-
if hostID, macAddr, _, err := logic.VerifyHostToken(authToken); err == nil && macAddr != "" {
181+
if hostID, _, _, err := logic.VerifyHostToken(authToken); err == nil {
182182
r.Header.Set(hostIDHeader, hostID)
183183
// this indicates request is from a node
184184
// used for failover - if a getNode comes from node, this will trigger a metrics wipe

migrate/migrate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ func settings() {
581581
}
582582
settings := logic.GetServerSettings()
583583
if settings.AuditLogsRetentionPeriodInDays == 0 {
584-
settings.AuditLogsRetentionPeriodInDays = 30
584+
settings.AuditLogsRetentionPeriodInDays = 7
585585
}
586586
if settings.DefaultDomain == "" {
587587
settings.DefaultDomain = servercfg.GetDefaultDomain()

0 commit comments

Comments
 (0)