Skip to content

armgit / fider

Public Imported from GitHub
0

Open platform to collect and prioritize feedback

fix: remove insecure ciphers

goenningd40acb56a087
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 3677247a6..1ce9a222b 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -11,10 +11,10 @@ jobs:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- - name: log event context
+ - name: log origin event
env:
- EVENT: ${{ toJSON(github.event) }}
- run: echo "$EVENT"
+ ORIGIN: ${{ github.event.html_url }}
+ run: echo "$ORIGIN"
- name: download artifact
uses: actions/[email protected]
with:
diff --git a/app/pkg/web/autocert_test.go b/app/pkg/web/autocert_test.go
index 3b6cfbc6a..2c4f7b6e3 100644
--- a/app/pkg/web/autocert_test.go
+++ b/app/pkg/web/autocert_test.go
@@ -30,5 +30,5 @@ func Test_UseAutoCert(t *testing.T) {
}
// GetCertificate starts a fire and forget go routine to delete items from cache, give it 2sec to complete it
- time.Sleep(2000)
+ time.Sleep(2*time.Second)
}
diff --git a/app/pkg/web/ssl.go b/app/pkg/web/ssl.go
index 9fe50116e..418913a38 100644
--- a/app/pkg/web/ssl.go
+++ b/app/pkg/web/ssl.go
@@ -15,23 +15,14 @@ import (
func getDefaultTLSConfig() *tls.Config {
return &tls.Config{
- MinVersion: tls.VersionTLS12,
- PreferServerCipherSuites: true,
- CurvePreferences: []tls.CurveID{
- tls.X25519,
- tls.CurveP256,
- },
+ MinVersion: tls.VersionTLS12,
CipherSuites: []uint16{
- tls.TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,
- tls.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,
- tls.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,
- tls.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,
- tls.TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305,
- tls.TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305,
- tls.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA,
- tls.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,
- tls.TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA,
- tls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA,
+ tls.TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,
+ tls.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,
+ tls.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,
+ tls.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,
+ tls.TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305,
+ tls.TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305,
},
}
}