Modern Docker Management, Designed for Everyone
Go composecontainer-managementcontainersdockerdocker-composedocker-managementgoself-hostedsveltekittypescriptweb-ui
chore(deps): switch hashicorp/uuid to google/uuid
Kyle Mendellb99849ca4fc6
diff --git a/.snyk b/.snyknew file mode 100644index 000000000..497373f0b--- /dev/null+++ b/.snyk@@ -0,0 +1,117 @@+# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.+version: v1.25.1+# ignores vulnerabilities until expiry date; change duration by modifying expiry date+ignore:+ 'snyk:lic:golang:github.com:hashicorp:go-version:MPL-2.0':+ - '*':+ reason: >-+ MPL-2.0 transitive dependency from Docker Compose pkg/api; accepted+ while tracking upstream removal.+ expires: 2027-06-21T00:00:00.000Z+ created: 2026-06-21T15:57:01.699Z+ 'snyk:lic:golang:github.com:hashicorp:go-multierror:MPL-2.0':+ - '*':+ reason: >-+ MPL-2.0 transitive dependency from Docker Compose secret-detector+ path; accepted while tracking upstream removal.+ expires: 2027-06-21T00:00:00.000Z+ created: 2026-06-21T15:57:02.882Z+ 'snyk:lic:golang:github.com:hashicorp:go-cleanhttp:MPL-2.0':+ - '*':+ reason: >-+ MPL-2.0 transitive dependency from BuildKit auth provider and Docker+ Compose; accepted while tracking upstream removal.+ expires: 2027-06-21T00:00:00.000Z+ created: 2026-06-21T15:57:04.165Z+ 'snyk:lic:golang:github.com:hashicorp:errwrap:MPL-2.0':+ - '*':+ reason: >-+ MPL-2.0 transitive dependency from Docker Compose secret-detector via+ go-multierror; accepted while tracking upstream removal.+ expires: 2027-06-21T00:00:00.000Z+ created: 2026-06-21T15:57:05.545Z+ 'snyk:lic:npm:lightningcss-win32-x64-msvc:MPL-2.0':+ - '*':+ reason: >-+ MPL-2.0 transitive dependency from Vite lightningcss toolchain;+ accepted while using the Vite frontend stack.+ expires: 2027-06-21T00:00:00.000Z+ created: 2026-06-21T16:00:24.055Z+ 'snyk:lic:npm:lightningcss-win32-arm64-msvc:MPL-2.0':+ - '*':+ reason: >-+ MPL-2.0 transitive dependency from Vite lightningcss toolchain;+ accepted while using the Vite frontend stack.+ expires: 2027-06-21T00:00:00.000Z+ created: 2026-06-21T16:00:25.388Z+ 'snyk:lic:npm:lightningcss-linux-x64-musl:MPL-2.0':+ - '*':+ reason: >-+ MPL-2.0 transitive dependency from Vite lightningcss toolchain;+ accepted while using the Vite frontend stack.+ expires: 2027-06-21T00:00:00.000Z+ created: 2026-06-21T16:00:26.769Z+ 'snyk:lic:npm:lightningcss-linux-x64-gnu:MPL-2.0':+ - '*':+ reason: >-+ MPL-2.0 transitive dependency from Vite lightningcss toolchain;+ accepted while using the Vite frontend stack.+ expires: 2027-06-21T00:00:00.000Z+ created: 2026-06-21T16:00:27.984Z+ 'snyk:lic:npm:lightningcss-linux-arm64-musl:MPL-2.0':+ - '*':+ reason: >-+ MPL-2.0 transitive dependency from Vite lightningcss toolchain;+ accepted while using the Vite frontend stack.+ expires: 2027-06-21T00:00:00.000Z+ created: 2026-06-21T16:00:29.197Z+ 'snyk:lic:npm:lightningcss-linux-arm64-gnu:MPL-2.0':+ - '*':+ reason: >-+ MPL-2.0 transitive dependency from Vite lightningcss toolchain;+ accepted while using the Vite frontend stack.+ expires: 2027-06-21T00:00:00.000Z+ created: 2026-06-21T16:00:30.556Z+ 'snyk:lic:npm:lightningcss-linux-arm-gnueabihf:MPL-2.0':+ - '*':+ reason: >-+ MPL-2.0 transitive dependency from Vite lightningcss toolchain;+ accepted while using the Vite frontend stack.+ expires: 2027-06-21T00:00:00.000Z+ created: 2026-06-21T16:00:31.816Z+ 'snyk:lic:npm:lightningcss-freebsd-x64:MPL-2.0':+ - '*':+ reason: >-+ MPL-2.0 transitive dependency from Vite lightningcss toolchain;+ accepted while using the Vite frontend stack.+ expires: 2027-06-21T00:00:00.000Z+ created: 2026-06-21T16:00:34.045Z+ 'snyk:lic:npm:lightningcss-darwin-x64:MPL-2.0':+ - '*':+ reason: >-+ MPL-2.0 transitive dependency from Vite lightningcss toolchain;+ accepted while using the Vite frontend stack.+ expires: 2027-06-21T00:00:00.000Z+ created: 2026-06-21T16:00:35.458Z+ 'snyk:lic:npm:lightningcss-darwin-arm64:MPL-2.0':+ - '*':+ reason: >-+ MPL-2.0 transitive dependency from Vite lightningcss toolchain;+ accepted while using the Vite frontend stack.+ expires: 2027-06-21T00:00:00.000Z+ created: 2026-06-21T16:00:36.988Z+ 'snyk:lic:npm:lightningcss-android-arm64:MPL-2.0':+ - '*':+ reason: >-+ MPL-2.0 transitive dependency from Vite lightningcss toolchain;+ accepted while using the Vite frontend stack.+ expires: 2027-06-21T00:00:00.000Z+ created: 2026-06-21T16:00:42.034Z+ 'snyk:lic:npm:lightningcss:MPL-2.0':+ - '*':+ reason: >-+ MPL-2.0 transitive dependency from Vite lightningcss toolchain;+ accepted while using the Vite frontend stack.+ expires: 2027-06-21T00:00:00.000Z+ created: 2026-06-21T16:00:43.477Z+patch: {}diff --git a/Justfile b/Justfileindex 4800a9d41..2833d7d65 100644--- a/Justfile+++ b/Justfile@@ -397,6 +397,20 @@ _fix-all:fix target="all":@just "_fix-{{ target }}"+# -----------------------------------------------------------------------------+# Security+# -----------------------------------------------------------------------------++# Run Snyk against all projects including dev dependencies+[group('security')]+_snyk-scan:+ snyk test --all-projects --dev --policy-path=.snyk++# Snyk targets. Valid: "scan".+[group('security')]+snyk target="scan":+ @just "_snyk-{{ target }}"+# -----------------------------------------------------------------------------# Dependencies# -----------------------------------------------------------------------------diff --git a/backend/go.mod b/backend/go.modindex ded285108..d957262eb 100644--- a/backend/go.mod+++ b/backend/go.mod@@ -34,7 +34,6 @@ require (github.com/google/uuid v1.6.0github.com/google/wire v0.7.0github.com/gorilla/websocket v1.5.4-0.20250319132907-e064f32e3674- github.com/hashicorp/go-uuid v1.0.3github.com/jinzhu/copier v0.4.0github.com/joho/godotenv v1.5.1github.com/labstack/echo/v4 v4.15.4diff --git a/backend/go.sum b/backend/go.sumindex 45633252b..d8d418f93 100644--- a/backend/go.sum+++ b/backend/go.sum@@ -282,8 +282,6 @@ github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9ngithub.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48=github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo=github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM=-github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/Co8=-github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=github.com/hashicorp/go-version v1.9.0 h1:CeOIz6k+LoN3qX9Z0tyQrPtiB1DFYRPfCIBtaXPSCnA=github.com/hashicorp/go-version v1.9.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA=github.com/hashicorp/golang-lru/v2 v2.0.7 h1:a+bsQ5rvGLjzHuww6tVxozPZFVghXaHOwFs4luLUK2k=diff --git a/backend/internal/services/settings_service.go b/backend/internal/services/settings_service.goindex d9dddfb8c..26c4dbb36 100644--- a/backend/internal/services/settings_service.go+++ b/backend/internal/services/settings_service.go@@ -16,7 +16,7 @@ import ("sync/atomic""time"- "github.com/hashicorp/go-uuid"+ "github.com/google/uuid""gorm.io/gorm""github.com/getarcaneapp/arcane/backend/v2/internal/config"@@ -784,12 +784,12 @@ func (s *SettingsService) setupInstanceID(ctx context.Context) error {return nil}- createdInstanceID, err := uuid.GenerateUUID()+ createdInstanceID, err := uuid.NewRandom()if err != nil {return fmt.Errorf("failed to created a new instance ID: %w", err)}- err = s.UpdateSetting(ctx, "instanceId", createdInstanceID)+ err = s.UpdateSetting(ctx, "instanceId", createdInstanceID.String())if err != nil {return fmt.Errorf("failed to set instance ID in database: %w", err)}@@ -900,11 +900,11 @@ func (s *SettingsService) EnsureEncryptionKey(ctx context.Context) (string, erronotFound := errors.Is(err, gorm.ErrRecordNotFound)// Generate uuid -> sha256 -> base64 key (32 bytes raw -> 44 chars base64)- u, genErr := uuid.GenerateUUID()+ u, genErr := uuid.NewRandom()if genErr != nil {return fmt.Errorf("failed to generate encryption key: %w", genErr)}- sum := sha256.Sum256([]byte(u))+ sum := sha256.Sum256([]byte(u.String()))generatedKey := base64.StdEncoding.EncodeToString(sum[:])key = generatedKey