From 13d18d771460ad1566d7d3a12662345fa609149b Mon Sep 17 00:00:00 2001 From: James Wells Date: Tue, 28 Mar 2023 09:55:51 -0700 Subject: [PATCH] fix: fixing a security issue in chaindb. fix: re-enabled dragonheim, since Docker decided not to remove it. --- .devcontainer/devcontainer.json | 4 ++-- internal/chaindb/chaindb.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 2b009a7..fb4ed8a 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -3,12 +3,12 @@ { "name": "Go", "build": { - // "dockerfile": "Dockerfile", + "dockerfile": "Dockerfile", "args": { // Update the VARIANT arg to pick a version of Go: 1, 1.16, 1.17 // Append -bullseye or -buster to pin to an OS version. // Use -bullseye variants on local arm64/Apple Silicon. - // "VARIANT": "1.20-bullseye", + "VARIANT": "1.20-bullseye", // Options "NODE_VERSION": "none" } diff --git a/internal/chaindb/chaindb.go b/internal/chaindb/chaindb.go index 4b98516..3cb3721 100644 --- a/internal/chaindb/chaindb.go +++ b/internal/chaindb/chaindb.go @@ -69,7 +69,7 @@ func (db *GagentDb) WriteHCL() error { agentBody.SetAttributeValue("version", cty.StringVal(row.Agent.Shasum)) } - return ioutil.WriteFile("chaindb_out.hcl", f.Bytes(), 0644) + return ioutil.WriteFile("chaindb_out.hcl", f.Bytes(), 0600) } /*