Skip to content

Commit

Permalink
Merge branch 'main' of github.com:jmpsec/osctrl into update_osctrl_conf
Browse files Browse the repository at this point in the history
  • Loading branch information
Bogdan Peter committed Jul 11, 2024
2 parents ed8eadd + 89914ee commit 34a171c
Show file tree
Hide file tree
Showing 43 changed files with 306 additions and 205 deletions.
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
OSCTRL_VERSION=0.3.6
OSCTRL_VERSION=0.3.7
OSQUERY_VERSION=5.12.1
NGINX_VERSION=1.21.6-alpine
POSTGRES_VERSION=13.5-alpine
Expand All @@ -7,6 +7,7 @@ POSTGRES_DB_USERNAME=osctrl
POSTGRES_DB_PASSWORD=osctrl
REDIS_VERSION=6.2.6-alpine3.15
JWT_SECRET=0000000000000000000000000000000000000000000000000000000000000000
SESSION_KEY=sessionkey
OSCTRL_USER=admin
OSCTRL_PASS=Changeme123!
GOLANG_VERSION=1.21.3
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# osctrl Changelog

## 🔖 Release [0.3.6](https://github.com/jmpsec/osctrl/releases/tag/v0.3.6)
## 🔖 Release [0.3.7](https://github.com/jmpsec/osctrl/releases/tag/v0.3.7)

### 🚨 Breaking Changes

Expand Down
36 changes: 18 additions & 18 deletions admin/handlers/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -34,30 +34,30 @@ replace github.com/jmpsec/osctrl/version => ../../version

require (
github.com/gorilla/mux v1.8.1
github.com/jmpsec/osctrl/admin/sessions v0.3.6
github.com/jmpsec/osctrl/carves v0.3.6
github.com/jmpsec/osctrl/environments v0.0.0-20240704175315-b3e7d3dd0a86
github.com/jmpsec/osctrl/metrics v0.0.0-20240704175315-b3e7d3dd0a86
github.com/jmpsec/osctrl/nodes v0.3.6
github.com/jmpsec/osctrl/queries v0.3.6
github.com/jmpsec/osctrl/settings v0.3.6
github.com/jmpsec/osctrl/tags v0.0.0-20240704175315-b3e7d3dd0a86
github.com/jmpsec/osctrl/types v0.3.6
github.com/jmpsec/osctrl/users v0.3.6
github.com/jmpsec/osctrl/utils v0.3.6
github.com/jmpsec/osctrl/admin/sessions v0.3.7
github.com/jmpsec/osctrl/carves v0.3.7
github.com/jmpsec/osctrl/environments v0.0.0-20240710135334-c020425d8ffe
github.com/jmpsec/osctrl/metrics v0.0.0-20240710135334-c020425d8ffe
github.com/jmpsec/osctrl/nodes v0.3.7
github.com/jmpsec/osctrl/queries v0.3.7
github.com/jmpsec/osctrl/settings v0.3.7
github.com/jmpsec/osctrl/tags v0.0.0-20240710135334-c020425d8ffe
github.com/jmpsec/osctrl/types v0.3.7
github.com/jmpsec/osctrl/users v0.3.7
github.com/jmpsec/osctrl/utils v0.3.7
)

require (
github.com/jmpsec/osctrl/cache v0.0.0-20240704175315-b3e7d3dd0a86
github.com/jmpsec/osctrl/cache v0.0.0-20240710135334-c020425d8ffe
gorm.io/gorm v1.25.10
)

require (
github.com/aws/aws-sdk-go v1.54.14 // indirect
github.com/aws/aws-sdk-go v1.54.17 // indirect
github.com/jackc/pgpassfile v1.0.0 // indirect
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect
github.com/jackc/puddle/v2 v2.2.1 // indirect
github.com/jmpsec/osctrl/backend v0.3.6 // indirect
github.com/jmpsec/osctrl/backend v0.3.7
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/rs/zerolog v1.33.0 // indirect
Expand Down Expand Up @@ -98,8 +98,8 @@ require (
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/jinzhu/now v1.1.5 // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
github.com/jmpsec/osctrl/logging v0.0.0-20240704175315-b3e7d3dd0a86
github.com/jmpsec/osctrl/version v0.3.6 // indirect
github.com/jmpsec/osctrl/logging v0.0.0-20240710135334-c020425d8ffe
github.com/jmpsec/osctrl/version v0.3.7 // indirect
github.com/magiconair/properties v1.8.7 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/pelletier/go-toml/v2 v2.2.2 // indirect
Expand All @@ -113,8 +113,8 @@ require (
github.com/spf13/viper v1.19.0 // indirect
github.com/subosito/gotenv v1.6.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/crypto v0.24.0 // indirect
golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8 // indirect
golang.org/x/crypto v0.25.0 // indirect
golang.org/x/exp v0.0.0-20240707233637-46b078467d37 // indirect
golang.org/x/sys v0.22.0 // indirect
golang.org/x/text v0.16.0 // indirect
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
Expand Down
6 changes: 6 additions & 0 deletions admin/handlers/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ github.com/aws/aws-sdk-go v1.51.16 h1:vnWKK8KjbftEkuPX8bRj3WHsLy1uhotn0eXptpvrxJ
github.com/aws/aws-sdk-go v1.51.16/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk=
github.com/aws/aws-sdk-go v1.54.14 h1:llJ60MzLzovyDE/rEDbUjS1cICh7krk1PwQwNlKRoeQ=
github.com/aws/aws-sdk-go v1.54.14/go.mod h1:eRwEWoyTWFMVYVQzKMNHWP5/RV4xIUGMQfXQHfHkpNU=
github.com/aws/aws-sdk-go v1.54.17 h1:ZV/qwcCIhMHgsJ6iXXPVYI0s1MdLT+5LW28ClzCUPeI=
github.com/aws/aws-sdk-go v1.54.17/go.mod h1:eRwEWoyTWFMVYVQzKMNHWP5/RV4xIUGMQfXQHfHkpNU=
github.com/aws/aws-sdk-go-v2 v1.26.0 h1:/Ce4OCiM3EkpW7Y+xUnfAFpchU78K7/Ug01sZni9PgA=
github.com/aws/aws-sdk-go-v2 v1.26.0/go.mod h1:35hUlJVYd+M++iLI3ALmVwMOyRYMmRqUXpTtRGW+K9I=
github.com/aws/aws-sdk-go-v2 v1.26.1 h1:5554eUqIYVWpU0YmeeYZ0wU64H2VLBs8TlhRB2L+EkA=
Expand Down Expand Up @@ -251,12 +253,16 @@ golang.org/x/crypto v0.22.0 h1:g1v0xeRhjcugydODzvb3mEM9SQ0HGp9s/nh3COQ/C30=
golang.org/x/crypto v0.22.0/go.mod h1:vr6Su+7cTlO45qkww3VDJlzDn0ctJvRgYbC2NvXHt+M=
golang.org/x/crypto v0.24.0 h1:mnl8DM0o513X8fdIkmyFE/5hTYxbwYOjDS/+rK6qpRI=
golang.org/x/crypto v0.24.0/go.mod h1:Z1PMYSOR5nyMcyAVAIQSKCDwalqy85Aqn1x3Ws4L5DM=
golang.org/x/crypto v0.25.0 h1:ypSNr+bnYL2YhwoMt2zPxHFmbAN1KZs/njMG3hxUp30=
golang.org/x/crypto v0.25.0/go.mod h1:T+wALwcMOSE0kXgUAnPAHqTLW+XHgcELELW8VaDgm/M=
golang.org/x/exp v0.0.0-20240325151524-a685a6edb6d8 h1:aAcj0Da7eBAtrTp03QXWvm88pSyOt+UgdZw2BFZ+lEw=
golang.org/x/exp v0.0.0-20240325151524-a685a6edb6d8/go.mod h1:CQ1k9gNrJ50XIzaKCRR2hssIjF07kZFEiieALBM/ARQ=
golang.org/x/exp v0.0.0-20240404231335-c0f41cb1a7a0 h1:985EYyeCOxTpcgOTJpflJUwOeEz0CQOdPt73OzpE9F8=
golang.org/x/exp v0.0.0-20240404231335-c0f41cb1a7a0/go.mod h1:/lliqkxwWAhPjf5oSOIJup2XcqJaw8RGS6k3TGEc7GI=
golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8 h1:yixxcjnhBmY0nkL253HFVIm0JsFHwrHdT3Yh6szTnfY=
golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8/go.mod h1:jj3sYF3dwk5D+ghuXyeI3r5MFf+NT2An6/9dOA95KSI=
golang.org/x/exp v0.0.0-20240707233637-46b078467d37 h1:uLDX+AfeFCct3a2C7uIWBKMJIR3CJMhcgfrUAqjRK6w=
golang.org/x/exp v0.0.0-20240707233637-46b078467d37/go.mod h1:M4RDyNAINzryxdtnbRXRL/OHtkFuWGRjvuhBJpk2IlY=
golang.org/x/net v0.21.0 h1:AQyQV4dYCvJ7vGmJyKki9+PBdyvhkSd8EIx/qb0AYv4=
golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44=
golang.org/x/sync v0.5.0 h1:60k92dhOjHxJkrqnwsfl8KuaHbn/5dl0lUPUklKo3qE=
Expand Down
15 changes: 13 additions & 2 deletions admin/handlers/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"log"

"github.com/jmpsec/osctrl/admin/sessions"
"github.com/jmpsec/osctrl/backend"
"github.com/jmpsec/osctrl/cache"
"github.com/jmpsec/osctrl/carves"
"github.com/jmpsec/osctrl/environments"
Expand Down Expand Up @@ -172,10 +173,20 @@ func WithAdminConfig(config *types.JSONConfigurationAdmin) HandlersOption {
}
}

func WithDBLogger(dbfile string) HandlersOption {
func WithDBLogger(dbfile string, config *backend.JSONConfigurationDB) HandlersOption {
return func(h *HandlersAdmin) {
if dbfile == "" {
h.DBLogger = nil
if config == nil {
h.DBLogger = nil
return
}
logger, err := logging.CreateLoggerDBConfig(*config)
if err != nil {
log.Printf("error creating DB logger %v", err)
logger.Enabled = false
logger.Database = nil
}
h.DBLogger = logger
return
}
logger, err := logging.CreateLoggerDBFile(dbfile)
Expand Down
28 changes: 19 additions & 9 deletions admin/handlers/json-logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,18 +108,28 @@ func (h *HandlersAdmin) JSONLogsHandler(w http.ResponseWriter, r *http.Request)
}
// Extract parameter for seconds
// If parameter is not present or invalid, it defaults to 6 hours back
secondsBack := int64(utils.SixHours)
seconds, ok := r.URL.Query()["seconds"]
// secondsBack := int64(utils.SixHours)
// seconds, ok := r.URL.Query()["seconds"]
// if ok {
// s, err := strconv.ParseInt(seconds[0], 10, 64)
// if err == nil {
// secondsBack = s
// }
// }
// Extract parameter for limit
// If parameter is not present or invalid, it defaults to 100 items
limitItems := int(100)
limit, ok := r.URL.Query()["limit"]
if ok {
s, err := strconv.ParseInt(seconds[0], 10, 64)
l, err := strconv.ParseInt(limit[0], 10, 32)
if err == nil {
secondsBack = s
limitItems = int(l)
}
}
// Get logs
logJSON := []LogJSON{}
if logType == types.StatusLog && h.AdminConfig.Logger == settings.LoggingDB {
statusLogs, err := h.DBLogger.StatusLogs(UUID, env.Name, secondsBack)
statusLogs, err := h.DBLogger.StatusLogsLimit(UUID, env.Name, int(limitItems))
if err != nil {
log.Printf("error getting logs %v", err)
h.Inc(metricJSONErr)
Expand All @@ -138,8 +148,8 @@ func (h *HandlersAdmin) JSONLogsHandler(w http.ResponseWriter, r *http.Request)
}
logJSON = append(logJSON, _l)
}
} else if logType == types.ResultLog && h.RedisCache != nil {
resultLogs, err := h.RedisCache.ResultLogs(UUID, env.Name, secondsBack)
} else if logType == types.ResultLog && h.AdminConfig.Logger == settings.LoggingDB {
resultLogs, err := h.DBLogger.ResultLogsLimit(UUID, env.Name, int(limitItems))
if err != nil {
log.Printf("error getting logs %v", err)
h.Inc(metricJSONErr)
Expand All @@ -149,8 +159,8 @@ func (h *HandlersAdmin) JSONLogsHandler(w http.ResponseWriter, r *http.Request)
for _, r := range resultLogs {
_l := LogJSON{
Created: CreationTimes{
Display: utils.PastFutureTimesEpoch(int64(r.UnixTime)),
Timestamp: strconv.Itoa(int(r.UnixTime)),
Display: utils.PastFutureTimes(r.CreatedAt),
Timestamp: strconv.Itoa(int(r.CreatedAt.Unix())),
},
First: r.Name,
Second: string(r.Columns),
Expand Down
20 changes: 16 additions & 4 deletions admin/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ var (
osqueryTablesFile string
osqueryTablesVersion string
loggerFile string
loggerDbSame bool
staticFilesFolder string
staticOffline bool
carvedFilesFolder string
Expand Down Expand Up @@ -522,6 +523,13 @@ func init() {
EnvVars: []string{"LOGGER_FILE"},
Destination: &loggerFile,
},
&cli.BoolFlag{
Name: "logger-db-same",
Value: false,
Usage: "Use the same DB configuration for the logger",
EnvVars: []string{"LOGGER_DB_SAME"},
Destination: &loggerDbSame,
},
&cli.StringFlag{
Name: "static",
Aliases: []string{"s"},
Expand Down Expand Up @@ -728,9 +736,13 @@ func osctrlAdminService() {
}
}()

// Set the logger configuration file to empty if we are logging to anything but the DB
if adminConfig.Logger != settings.LoggingDB {
loggerFile = ""
var loggerDBConfig *backend.JSONConfigurationDB
loggerFile = ""
// Set the logger configuration file if we have a DB logger
if adminConfig.Logger == settings.LoggingDB {
if loggerDbSame {
loggerDBConfig = &dbConfig
}
}

// Initialize Admin handlers before router
Expand All @@ -753,7 +765,7 @@ func osctrlAdminService() {
handlers.WithOsqueryTables(osqueryTables),
handlers.WithCarvesFolder(carvedFilesFolder),
handlers.WithAdminConfig(&adminConfig),
handlers.WithDBLogger(loggerFile),
handlers.WithDBLogger(loggerFile, loggerDBConfig),
)

// ////////////////////////// ADMIN
Expand Down
18 changes: 9 additions & 9 deletions admin/sessions/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ replace github.com/jmpsec/osctrl/version => ../../version
require (
github.com/gorilla/securecookie v1.1.2
github.com/gorilla/sessions v1.3.0
github.com/jmpsec/osctrl/nodes v0.3.6 // indirect
github.com/jmpsec/osctrl/queries v0.3.6 // indirect
github.com/jmpsec/osctrl/types v0.3.6 // indirect
github.com/jmpsec/osctrl/users v0.3.6
github.com/jmpsec/osctrl/nodes v0.3.7 // indirect
github.com/jmpsec/osctrl/queries v0.3.7 // indirect
github.com/jmpsec/osctrl/types v0.3.7 // indirect
github.com/jmpsec/osctrl/users v0.3.7
)

require (
github.com/jmpsec/osctrl/utils v0.0.0-20240704175315-b3e7d3dd0a86
github.com/jmpsec/osctrl/utils v0.0.0-20240710135334-c020425d8ffe
gorm.io/gorm v1.25.10
)

Expand All @@ -37,9 +37,9 @@ require (
github.com/google/uuid v1.6.0 // indirect
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/jinzhu/now v1.1.5 // indirect
github.com/jmpsec/osctrl/environments v0.0.0-20240704175315-b3e7d3dd0a86 // indirect
github.com/jmpsec/osctrl/settings v0.3.6 // indirect
github.com/jmpsec/osctrl/version v0.3.6 // indirect
github.com/jmpsec/osctrl/environments v0.0.0-20240710135334-c020425d8ffe // indirect
github.com/jmpsec/osctrl/settings v0.3.7 // indirect
github.com/jmpsec/osctrl/version v0.3.7 // indirect
github.com/segmentio/ksuid v1.0.4 // indirect
golang.org/x/crypto v0.24.0 // indirect
golang.org/x/crypto v0.25.0 // indirect
)
2 changes: 2 additions & 0 deletions admin/sessions/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ golang.org/x/crypto v0.22.0 h1:g1v0xeRhjcugydODzvb3mEM9SQ0HGp9s/nh3COQ/C30=
golang.org/x/crypto v0.22.0/go.mod h1:vr6Su+7cTlO45qkww3VDJlzDn0ctJvRgYbC2NvXHt+M=
golang.org/x/crypto v0.24.0 h1:mnl8DM0o513X8fdIkmyFE/5hTYxbwYOjDS/+rK6qpRI=
golang.org/x/crypto v0.24.0/go.mod h1:Z1PMYSOR5nyMcyAVAIQSKCDwalqy85Aqn1x3Ws4L5DM=
golang.org/x/crypto v0.25.0 h1:ypSNr+bnYL2YhwoMt2zPxHFmbAN1KZs/njMG3hxUp30=
golang.org/x/crypto v0.25.0/go.mod h1:T+wALwcMOSE0kXgUAnPAHqTLW+XHgcELELW8VaDgm/M=
golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gorm.io/driver/postgres v1.4.5 h1:mTeXTTtHAgnS9PgmhN2YeUbazYpLhUI1doLnw42XUZc=
Expand Down
6 changes: 4 additions & 2 deletions admin/templates/node.html
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,8 @@
<div class="card mt-2">
<div id="status-card-header" class="card-header">
<i class="fas fa-stream"></i>
<label for="back_hours_status">Last <b><output id="back_output_status">6</output></b> hours of status logs for node {{ .UUID }}</label>
<!-- <label for="back_hours_status">Last <b><output id="back_output_status">6</output></b> hours of status logs for node {{ .UUID }}</label> -->
<label for="back_hours_status">Last <b><output>100</output id="back_output_status"></b> entries of status logs for node {{ .UUID }}</label>
<a href="#status-logs" target="_blank">
<i class="fas fa-external-link-alt"></i>
</a>
Expand Down Expand Up @@ -416,7 +417,8 @@
<div class="card mt-2">
<div id="result-card-header" class="card-header">
<i class="fas fa-stream"></i>
<label for="back_hours_result">Last <b><output id="back_output_result">6</output></b> hours of status logs for node {{ .UUID }}</label>
<!-- <label for="back_hours_result">Last <b><output id="back_output_result">6</output></b> hours of result logs for node {{ .UUID }}</label> -->
<label for="back_hours_result">Last <b><output id="back_output_result">100</output></b> entries of result logs for node {{ .UUID }}</label>
<a href="#result-logs" target="_blank">
<i class="fas fa-external-link-alt"></i>
</a>
Expand Down
4 changes: 2 additions & 2 deletions backend/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ require (
github.com/spf13/pflag v1.0.5 // indirect
github.com/subosito/gotenv v1.6.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/crypto v0.24.0 // indirect
golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8 // indirect
golang.org/x/crypto v0.25.0 // indirect
golang.org/x/exp v0.0.0-20240707233637-46b078467d37 // indirect
golang.org/x/sync v0.7.0 // indirect
golang.org/x/sys v0.22.0 // indirect
golang.org/x/text v0.16.0 // indirect
Expand Down
4 changes: 4 additions & 0 deletions backend/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,16 @@ golang.org/x/crypto v0.22.0 h1:g1v0xeRhjcugydODzvb3mEM9SQ0HGp9s/nh3COQ/C30=
golang.org/x/crypto v0.22.0/go.mod h1:vr6Su+7cTlO45qkww3VDJlzDn0ctJvRgYbC2NvXHt+M=
golang.org/x/crypto v0.24.0 h1:mnl8DM0o513X8fdIkmyFE/5hTYxbwYOjDS/+rK6qpRI=
golang.org/x/crypto v0.24.0/go.mod h1:Z1PMYSOR5nyMcyAVAIQSKCDwalqy85Aqn1x3Ws4L5DM=
golang.org/x/crypto v0.25.0 h1:ypSNr+bnYL2YhwoMt2zPxHFmbAN1KZs/njMG3hxUp30=
golang.org/x/crypto v0.25.0/go.mod h1:T+wALwcMOSE0kXgUAnPAHqTLW+XHgcELELW8VaDgm/M=
golang.org/x/exp v0.0.0-20240325151524-a685a6edb6d8 h1:aAcj0Da7eBAtrTp03QXWvm88pSyOt+UgdZw2BFZ+lEw=
golang.org/x/exp v0.0.0-20240325151524-a685a6edb6d8/go.mod h1:CQ1k9gNrJ50XIzaKCRR2hssIjF07kZFEiieALBM/ARQ=
golang.org/x/exp v0.0.0-20240404231335-c0f41cb1a7a0 h1:985EYyeCOxTpcgOTJpflJUwOeEz0CQOdPt73OzpE9F8=
golang.org/x/exp v0.0.0-20240404231335-c0f41cb1a7a0/go.mod h1:/lliqkxwWAhPjf5oSOIJup2XcqJaw8RGS6k3TGEc7GI=
golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8 h1:yixxcjnhBmY0nkL253HFVIm0JsFHwrHdT3Yh6szTnfY=
golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8/go.mod h1:jj3sYF3dwk5D+ghuXyeI3r5MFf+NT2An6/9dOA95KSI=
golang.org/x/exp v0.0.0-20240707233637-46b078467d37 h1:uLDX+AfeFCct3a2C7uIWBKMJIR3CJMhcgfrUAqjRK6w=
golang.org/x/exp v0.0.0-20240707233637-46b078467d37/go.mod h1:M4RDyNAINzryxdtnbRXRL/OHtkFuWGRjvuhBJpk2IlY=
golang.org/x/sync v0.6.0 h1:5BMeUDZ7vkXGfEr1x9B4bRcTH4lpkTkpdh0T/J+qjbQ=
golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M=
Expand Down
10 changes: 5 additions & 5 deletions cache/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ replace github.com/jmpsec/osctrl/utils => ../utils

require (
github.com/go-redis/redis/v8 v8.11.5
github.com/jmpsec/osctrl/types v0.0.0-20240704175315-b3e7d3dd0a86
github.com/jmpsec/osctrl/types v0.0.0-20240710135334-c020425d8ffe
github.com/spf13/viper v1.19.0
)

Expand All @@ -24,9 +24,9 @@ require (
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/jinzhu/now v1.1.5 // indirect
github.com/jmpsec/osctrl/nodes v0.3.6 // indirect
github.com/jmpsec/osctrl/queries v0.3.6 // indirect
github.com/jmpsec/osctrl/utils v0.0.0-20240704175315-b3e7d3dd0a86 // indirect
github.com/jmpsec/osctrl/nodes v0.3.7 // indirect
github.com/jmpsec/osctrl/queries v0.3.7 // indirect
github.com/jmpsec/osctrl/utils v0.0.0-20240710135334-c020425d8ffe // indirect
github.com/magiconair/properties v1.8.7 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/pelletier/go-toml/v2 v2.2.2 // indirect
Expand All @@ -40,7 +40,7 @@ require (
github.com/subosito/gotenv v1.6.0 // indirect
go.uber.org/atomic v1.11.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8 // indirect
golang.org/x/exp v0.0.0-20240707233637-46b078467d37 // indirect
golang.org/x/sys v0.22.0 // indirect
golang.org/x/text v0.16.0 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
Expand Down
4 changes: 3 additions & 1 deletion cache/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,8 @@ golang.org/x/exp v0.0.0-20240404231335-c0f41cb1a7a0 h1:985EYyeCOxTpcgOTJpflJUwOe
golang.org/x/exp v0.0.0-20240404231335-c0f41cb1a7a0/go.mod h1:/lliqkxwWAhPjf5oSOIJup2XcqJaw8RGS6k3TGEc7GI=
golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8 h1:yixxcjnhBmY0nkL253HFVIm0JsFHwrHdT3Yh6szTnfY=
golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8/go.mod h1:jj3sYF3dwk5D+ghuXyeI3r5MFf+NT2An6/9dOA95KSI=
golang.org/x/exp v0.0.0-20240707233637-46b078467d37 h1:uLDX+AfeFCct3a2C7uIWBKMJIR3CJMhcgfrUAqjRK6w=
golang.org/x/exp v0.0.0-20240707233637-46b078467d37/go.mod h1:M4RDyNAINzryxdtnbRXRL/OHtkFuWGRjvuhBJpk2IlY=
golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js=
golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
Expand Down Expand Up @@ -372,7 +374,7 @@ golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.7/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ=
golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
Expand Down
Loading

0 comments on commit 34a171c

Please sign in to comment.