diff options
author | Paul Duncan <pabs@pablotron.org> | 2022-02-25 03:47:29 -0500 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2022-02-25 03:47:29 -0500 |
commit | 84316f86ba41dde3cc5166e1cf28cc498e101daf (patch) | |
tree | 6388d9ef177583e5d9b154fcd8177c9c96ee9f92 | |
parent | ffb0428afa2c1497e263eacfdb790fd9213dc2d3 (diff) | |
download | pablotron.org-84316f86ba41dde3cc5166e1cf28cc498e101daf.tar.bz2 pablotron.org-84316f86ba41dde3cc5166e1cf28cc498e101daf.zip |
add posts/2022-02-25-relaxed-csp-for-go-coverage.md
-rw-r--r-- | TODO.md | 24 | ||||
-rw-r--r-- | content/posts/2022-02-25-relaxed-csp-for-go-coverage.md | 4 |
2 files changed, 15 insertions, 13 deletions
@@ -117,17 +117,9 @@ this stuff may not make any sense. - trigger `REFERENCING ... AS` (newer PG) - `COMMENT ON` ... - `LISTEN/NOTIFY`? -* CSP-friendly golang coverage reports (see note from k3-notes.txt about - relaxing CSP for `pmdn.org/coverage/`) - - https://cs.opensource.google/go/go/+/master:src/cmd/cover/html.go - - "replace `style='display: none` with `.hide` (shrink html, improve - CSP handling)" - - "add sha256 hash for `<style>`" - - "add sha256 hash for `<script>`" - - "add `<meta http-equiv='content-security-policy' ...>`?" - - other: - - add `title` and maybe `aria-label` attributes to relevant elements - - add option to include external stylesheet? +- misc go cover improvements + - add `title` and maybe `aria-label` attributes to relevant elements + - add option to include external stylesheet? * compare and contrast cyclonedx vs spdx - (at the moment i like cyclonedx more, it seems less ad-hoc) - https://cyclonedx.org/docs/1.4/json/ @@ -135,6 +127,8 @@ this stuff may not make any sense. - go parsers for both are available: - https://github.com/spdx/tools-golang - https://github.com/CycloneDX/cyclonedx-go +* investigate sendBeacon() + https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon ## done * add project folders @@ -166,3 +160,11 @@ this stuff may not make any sense. (created repo: https://github.com/pablotron/tiny-binaries) * rust 1.59.9 stripped binaries (update) - https://blog.rust-lang.org/2022/02/24/Rust-1.59.0.html#creating-stripped-binaries +* CSP-friendly golang coverage reports (see note from k3-notes.txt about + relaxing CSP for `pmdn.org/coverage/`) + - https://cs.opensource.google/go/go/+/master:src/cmd/cover/html.go + - "replace `style='display: none` with `.hide` (shrink html, improve + CSP handling)" + - "add sha256 hash for `<style>`" + - "add sha256 hash for `<script>`" + - "add `<meta http-equiv='content-security-policy' ...>`?" diff --git a/content/posts/2022-02-25-relaxed-csp-for-go-coverage.md b/content/posts/2022-02-25-relaxed-csp-for-go-coverage.md index bf5dcfe..20127ac 100644 --- a/content/posts/2022-02-25-relaxed-csp-for-go-coverage.md +++ b/content/posts/2022-02-25-relaxed-csp-for-go-coverage.md @@ -94,5 +94,5 @@ the default one. "Data URL." [apache]: https://httpd.apache.org/ "Apache web server." -[go-cover-html-src]: https://cs.opensource.google/go/go/+/master:src/cmd/cover/html.go - "Source code for the HTML code coverage reports generated by go cover." +[go-cover-html-src]: https://cs.opensource.google/go/go/+/master:src/cmd/cover/html.go;l=203 + "Template in source code for go cover HTML code coverage report." |