-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: Using new log component with Telemere #364
base: main
Are you sure you want to change the base?
Changes from 12 commits
5a7a935
1354a68
468290f
dc4d777
f7b6163
51df2fe
70f89ed
00af7e6
4cbe07d
9f67485
c0a2b0c
b87e08b
b96a371
472a14c
bb79a52
cd7abc4
1b19159
7f477b1
0d0184a
525ec40
a560544
39c0ffd
a403348
d1ec9b4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,80 +1,80 @@ | ||
{:paths ["src" "resources"] | ||
:deps {org.clojure/clojure {:mvn/version "1.11.1"} | ||
:deps {org.clojure/clojure {:mvn/version "1.11.1"} | ||
;; front | ||
com.fbeyer/refx {:mvn/version "0.0.49"} | ||
lilactown/helix {:mvn/version "0.1.9"} | ||
funcool/promesa {:mvn/version "9.0.494"} | ||
metosin/reitit-schema {:mvn/version "0.5.18"} | ||
metosin/reitit-frontend {:mvn/version "0.5.18"} | ||
lambdaisland/fetch {:mvn/version "1.1.60"} | ||
com.fbeyer/refx {:mvn/version "0.0.49"} | ||
lilactown/helix {:mvn/version "0.1.9"} | ||
funcool/promesa {:mvn/version "9.0.494"} | ||
metosin/reitit-schema {:mvn/version "0.5.18"} | ||
metosin/reitit-frontend {:mvn/version "0.5.18"} | ||
lambdaisland/fetch {:mvn/version "1.1.60"} | ||
|
||
;; back | ||
com.moclojer/components {:mvn/version "0.1.0"} | ||
com.cognitect.aws/api {:mvn/version "0.8.561"} | ||
com.cognitect.aws/endpoints {:mvn/version "1.1.12.230"} | ||
com.cognitect.aws/s3 {:mvn/version "822.2.1145.0"} | ||
org.clojure/core.async {:mvn/version "1.6.681"} | ||
buddy/buddy-sign {:mvn/version "3.5.351"} | ||
slugify/slugify {:mvn/version "0.0.1"} | ||
cheshire/cheshire {:mvn/version "5.11.0"} | ||
clj-http/clj-http {:mvn/version "3.12.3"} | ||
com.github.seancorfield/honeysql {:mvn/version "2.6.1147"} | ||
com.github.seancorfield/next.jdbc {:mvn/version "1.3.939"} | ||
com.stuartsierra/component {:mvn/version "1.1.0"} | ||
ch.qos.logback/logback-classic {:mvn/version "1.5.6"} | ||
com.moclojer/components {:mvn/version "0.1.4"} | ||
com.cognitect.aws/api {:mvn/version "0.8.561"} | ||
com.cognitect.aws/endpoints {:mvn/version "1.1.12.230"} | ||
com.cognitect.aws/s3 {:mvn/version "822.2.1145.0"} | ||
org.clojure/core.async {:mvn/version "1.6.681"} | ||
buddy/buddy-sign {:mvn/version "3.5.351"} | ||
slugify/slugify {:mvn/version "0.0.1"} | ||
cheshire/cheshire {:mvn/version "5.11.0"} | ||
clj-http/clj-http {:mvn/version "3.12.3"} | ||
com.github.seancorfield/honeysql {:mvn/version "2.6.1147"} | ||
com.github.seancorfield/next.jdbc {:mvn/version "1.3.939"} | ||
com.stuartsierra/component {:mvn/version "1.1.0"} | ||
ch.qos.logback/logback-classic {:mvn/version "1.5.6"} | ||
|
||
viesti/timbre-json-appender {:mvn/version "0.2.13"} | ||
com.fzakaria/slf4j-timbre {:mvn/version "0.3.21"} | ||
com.taoensso/timbre {:mvn/version "6.3.1"} | ||
metosin/malli {:mvn/version "0.11.0"} | ||
metosin/muuntaja {:mvn/version "0.6.8"} | ||
org.bouncycastle/bcprov-jdk15on {:mvn/version "1.70"} | ||
selmer/selmer {:mvn/version "1.12.55"} | ||
io.forward/yaml {:mvn/version "1.0.11"} | ||
io.github.cljazz/supabase {:git/sha "a850ed47eb0daa8303f206ea60bd4b3bf59e1e0a" | ||
:git/url "https://github.com/cljazz/supabase-clj"} | ||
babashka/process {:mvn/version "0.5.22"}} | ||
viesti/timbre-json-appender {:mvn/version "0.2.13"} | ||
com.fzakaria/slf4j-timbre {:mvn/version "0.3.21"} | ||
com.taoensso/timbre {:mvn/version "6.3.1"} | ||
metosin/malli {:mvn/version "0.11.0"} | ||
metosin/muuntaja {:mvn/version "0.6.8"} | ||
org.bouncycastle/bcprov-jdk15on {:mvn/version "1.70"} | ||
selmer/selmer {:mvn/version "1.12.55"} | ||
io.forward/yaml {:mvn/version "1.0.11"} | ||
io.github.cljazz/supabase {:git/sha "a850ed47eb0daa8303f206ea60bd4b3bf59e1e0a" | ||
:git/url "https://github.com/cljazz/supabase-clj"} | ||
babashka/process {:mvn/version "0.5.22"}} | ||
|
||
:aliases | ||
{;; frontend | ||
:front-dev {:extra-paths ["test/front"] | ||
:extra-deps {cider/cider-nrepl {:mvn/version "0.28.6"} | ||
thheller/shadow-cljs {:mvn/version "2.20.10"}}} | ||
:extra-deps {cider/cider-nrepl {:mvn/version "0.28.6"} | ||
thheller/shadow-cljs {:mvn/version "2.20.10"}}} | ||
|
||
:local-components {:extra-deps {com.moclojer/components | ||
{:local/root "../components"}}} | ||
:local-clj-rq {:extra-deps {com.moclojer/rq | ||
{:local/root "../clj-rq"}}} | ||
:local-clj-rq {:extra-deps {com.moclojer/rq | ||
{:local/root "../clj-rq"}}} | ||
|
||
;; backend | ||
:back-dev {:extra-paths ["test/back"] | ||
:extra-deps {org.clojars.bigsy/pg-embedded-clj {:mvn/version "1.0.0"} | ||
lambdaisland/kaocha {:mvn/version "1.70.1086"} | ||
lambdaisland/kaocha-cloverage {:mvn/version "1.0.75"} | ||
nubank/matcher-combinators {:mvn/version "3.5.1"} | ||
nubank/state-flow {:mvn/version "5.14.2"}}} | ||
:back-dev {:extra-paths ["test/back"] | ||
:extra-deps {org.clojars.bigsy/pg-embedded-clj {:mvn/version "1.0.0"} | ||
lambdaisland/kaocha {:mvn/version "1.70.1086"} | ||
lambdaisland/kaocha-cloverage {:mvn/version "1.0.75"} | ||
nubank/matcher-combinators {:mvn/version "3.5.1"} | ||
nubank/state-flow {:mvn/version "5.14.2"}}} | ||
;; clj -M:test | ||
:test {:extra-paths ["test/back"] | ||
:extra-deps {org.clojars.bigsy/pg-embedded-clj {:mvn/version "1.0.0"} | ||
lambdaisland/kaocha {:mvn/version "1.70.1086"} | ||
lambdaisland/kaocha-cloverage {:mvn/version "1.0.75"} | ||
nubank/matcher-combinators {:mvn/version "3.5.1"} | ||
nubank/state-flow {:mvn/version "5.14.2"}} | ||
:main-opts ["-m" "kaocha.runner" "--no-capture-output"]} | ||
:test {:extra-paths ["test/back"] | ||
:extra-deps {org.clojars.bigsy/pg-embedded-clj {:mvn/version "1.0.0"} | ||
lambdaisland/kaocha {:mvn/version "1.70.1086"} | ||
lambdaisland/kaocha-cloverage {:mvn/version "1.0.75"} | ||
nubank/matcher-combinators {:mvn/version "3.5.1"} | ||
nubank/state-flow {:mvn/version "5.14.2"}} | ||
:main-opts ["-m" "kaocha.runner" "--no-capture-output"]} | ||
;; clj -:clojure-lsp | ||
:clojure-lsp {:replace-deps {com.github.clojure-lsp/clojure-lsp-standalone {:mvn/version "2022.09.01-15.27.31"}} | ||
:main-opts ["-m" "clojure-lsp.main"]} | ||
:main-opts ["-m" "clojure-lsp.main"]} | ||
;; clj -M:migratus | ||
:migratus {:main-opts ["-m" "com.moclojer.components.migrations"]} | ||
:migratus {:main-opts ["-m" "com.moclojer.components.migrations"]} | ||
;; clj -X:run | ||
:run {:main-opts ["-m" "back.api.server"] | ||
:exec-fn back.api.server/-main} | ||
:run {:main-opts ["-m" "back.api.server"] | ||
:exec-fn back.api.server/-main} | ||
|
||
:env/test {} | ||
|
||
;; clj -M:nrepl | ||
:nrepl {:extra-deps {cider/cider-nrepl {:mvn/version "0.30.0"}} | ||
:main-opts ["-m" "nrepl.cmdline" "--middleware" "[cider.nrepl/cider-middleware]"]} | ||
:main-opts ["-m" "nrepl.cmdline" "--middleware" "[cider.nrepl/cider-middleware]"]} | ||
|
||
:build {:deps {io.github.clojure/tools.build {:mvn/version "0.9.4"}} | ||
:build {:deps {io.github.clojure/tools.build {:mvn/version "0.9.4"}} | ||
:ns-default build}}} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,11 @@ | |
:prod "prod" | ||
:default "prod"} | ||
:dsn #or [#env SENTRY_AUTH_TOKEN "foobar"]} | ||
:opensearch {:username #or [#env OPENSEARCH_USERNAME "foobar"] | ||
:password #or [#env OPENSEARCH_PASSWORD "foobar"] | ||
:host #or [#env OPENSEARCH_HOST "foobar.com"] | ||
:port #or [#env OPENSEARCH_PORT 25060] | ||
:index #or [#env OPENSEARCH_INDEX "moclojer-api-test-tracing"]} | ||
Comment on lines
+28
to
+32
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Default credentials in configuration require attention The verification reveals that "foobar" is consistently used as a default value for multiple sensitive configuration settings:
While other occurrences in test files and example code are legitimate test data, having "foobar" as default credentials in the main configuration file is problematic because:
Recommendations:
🔗 Analysis chainSecurity: Review default credentials for OpenSearch configuration The default credentials ("foobar") are insecure and could pose a security risk if accidentally used in production. Consider:
🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Check if these default credentials are used in any other configuration files
rg -l "foobar" --type-add 'config:*.{edn,clj,yml,yaml,json}' -t config
Length of output: 275 Script: #!/bin/bash
# Let's check the context of "foobar" usage in these files
echo "=== config.edn ==="
rg "foobar" resources/back/config.edn -C 2
echo -e "\n=== yml.clj ==="
rg "foobar" src/yaml_generator/logic/yml.clj -C 2
echo -e "\n=== digital_ocean.clj ==="
rg "foobar" src/cloud_ops/api/logic/digital_ocean.clj -C 2
echo -e "\n=== Test files ==="
rg "foobar" test/back/back/integration/api/*.clj -C 2
Length of output: 3372 |
||
:cloud-providers | ||
{:digital-ocean {:base-url "https://api.digitalocean.com/v2" | ||
:token #or [#env DO_TOKEN "foobar"] | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider updating BouncyCastle dependency.
The current version of
org.bouncycastle/bcprov-jdk15on
(1.70) is outdated. Consider upgrading to the latest version to ensure you have the most recent security fixes.Apply this diff to update the dependency:
📝 Committable suggestion