koehnlein, (edited ) to firefox
@koehnlein@mastodon.social avatar

I had trouble with Content-Security-Policy reporting on a password protected staging environment in combination with Firefox. I found a nice solution and blogged about it:

https://www.koehnlein.eu/en/blog/2024/csp-reporting-basic-auth/

leobm, to javascript
@leobm@norden.social avatar

Why has -style (channels) programming using (asynchronous) generators in JavaScript not really been pursued or advanced? The projects I have found on this topic have not been updated or maintained for years, which I think is a shame. People interested in or should actually feel at home here.

https://github.com/js-csp/js-csp
https://github.com/dvlsg/async-csp
https://github.com/nicolasdao/core-async

nil, to random
@nil@functional.cafe avatar

Does anyone else spend a lot of time thinking about what the developer experience of a pure could be? I think the immediate issue is the language itself needs to have CSP primitives baked in and not layered on (no matter how cool the party trick). I say this because the debugging experience can’t be wading through state machines you did not write yourself. Exene (written in concurrent ML) is only prior art I am aware of. Maybe stuff?

mima, to lemmy

's recent vulnerability and their handling of it is still miles better than 's exploit which actually took down a big instance and is something even more elementary than what Sharkey experienced.

Like seriously, the first thing you do when parsing is involved is to sanitize the hell out of it, both in the Markdown input and the HTML output. And you put up a strict for good measure. Lemmy spectacularly failed on both counts, despite existing as a project for years and a lot more instances (and therefore users, which rivals ) using their software!

I can cut some slack for the Sharkey devs here because:

  • they're relatively new (only months since the project started)
  • it only affected note imports from which is already niche enough
  • it was easy to mitigate (just disable note import)
  • it didn't affect single-user instances IIUC
  • I haven't seen any Sharkey instance get actually exploited by this
  • they're taking steps to make sure this shit doesn't happen again (haven't seen this from Lemmy yet, and last I checked their CSP is still shit)

So this is not worth blowing over in the . Your assessment is exaggerated, this energy could've been spent somewhere else, and you owe the Sharkey devs an apology.

RE: https://meowcity.club/fedi/tetra/p/1706812792.496325

nil, to UI
@nil@functional.cafe avatar

Any enjoyers?

damienbod, to blazor
nil, to random
@nil@functional.cafe avatar

This is awesome!

kimhu, to random
@kimhu@peoplemaking.games avatar

Got a Q on how I pick my colors over on bluesky, and while I wouldn't claim myself a color whiz (my process always involves a lot of crying, screaming, throwing up, trial and error until something sticks) let me introduce fellow CSP users to the "Intermediate Color" and "Approximate Color" tools.

Those two help me a lot once I figured out the basics.

iamdtms, to random
@iamdtms@mas.to avatar
simoncox, to SEO
@simoncox@seocommunity.social avatar

TIL.

is easier than .

CrickettGrrrl, to Halloween

Drawing of Trump & Putin based on the iconic Wizard of Oz movie poster. It was sheer delight to draw the Donald’s tiny fingers & yellow nails.

CrickettGrrrl, to Halloween

Drawing of an Edwardian bat woman.

adamchainz, to random
@adamchainz@fosstodon.org avatar

Reminder: self-host your scripts rather than using JavaScript CDNs like jsdelivr or unpkg

https://blog.wesleyac.com/posts/why-not-javascript-cdn

webology,
@webology@mastodon.social avatar

@d I dove down this rabbit hole last night and never made it out. https://htmx.org/docs/#csp-options

Then it just worked on my M2 without so much as a warning. Not a battle I want to fight tonight, but I would happily check out your middleware though. 🙏

happyborg, to rust
@happyborg@fosstodon.org avatar

Async Rust is a Bad Language by Matt Kline.

Very good intro and thought provoking article on and , and their use in .

It champions 's model of concurrency which takes me back. Back to the time I failed to get funding for a start-up to build an compiler targeting i386. Which was largely a ploy to get the UK government to buy me some neat kit 🤷‍♂️

Anyway, here's the article:
https://bitbashing.io/async-rust.html

lukas, to random German
@lukas@social.lukas-schieren.de avatar

Wie baue ich eine Content Security Policy (CSP) die nicht die ganze Webseite kaputt macht? :D

KeithMills, to Surface
PythonLinks, to golang
@PythonLinks@mastodon.social avatar

@M0CUV
The reason that your work is so interesting to me, is that I am huge fan of , Communicating sequential processors. , and Python's are all based on CSP.. Modern cpu's do not support it well. The transputer supported it. We need Forth processors running CSP.

toxi, to typescript
@toxi@mastodon.thi.ng avatar

As promised, a new version of https://thi.ng/fibers is out now and includes several new fiber operators/combinators and all the essentials for channel-based communication between processes/fibers (aka ). The CSP channel supports arbitrary buffer sizes & implementations to achieve a range of blocking/non-blocking behaviors for reads/writes. And because all channel ops (read/write/close) are fiber-based, they can also be combined with all the other available operators, enabling some pretty powerful and expressive usage patterns...

More demos & tutorial forthcoming. Check the readme, API docs & examples and please report back with any feedback/questions/suggestions...

🫶🚀

toxi, (edited ) to random
@toxi@mastodon.thi.ng avatar

After some friendly inquiry by @computersandblues, I spent a few hours today adding basic CSP () primitives for https://thi.ng/fibers and writing some preliminary documentation. I'm amazed how simple (and easy!) it was this time around (compared to https://thi.ng/csp) and it's giving me big hopes for the fiber based approach in general...

Readme section:
https://github.com/thi-ng/umbrella/blob/develop/packages/fibers/README.md#csp-primitives-communicating-sequential-processes

2-channel ping/pong example:
https://github.com/thi-ng/umbrella/blob/develop/packages/fibers/README.md#csp-pingpong-example

Source code & doc strings:
https://github.com/thi-ng/umbrella/blob/develop/packages/fibers/src/csp.ts

Tealk, to random German
@Tealk@rollenspiel.social avatar

Wer hat denn eine idee wie ich das Problem mit und 's lösen kann?

https://codeberg.org/RollenspielMonster/website/issues/10

cybersmog, to php
@cybersmog@phpc.social avatar

Since v12 there is native support for . Oliver Hader now explains „Content Security Policy - Concept, Strategies & Pitfalls“ during the TYPO3 Developer Days.

ai6yr, to chile
@ai6yr@mastodon.radio avatar

I almost forgot about this glorius video (using a concentrated solar power, from ). This is like using a to make a steak ;-)

Chile being roasted by concentrated solar power mirrors in NM in 2022.

andreas, to php German
@andreas@karlsruhe-social.de avatar

Ich schaffe es einfach nicht, in 12.4 mittels einer csp.yaml fürs Frontend zu konfigurieren. Meine Regeln greifen einfach nicht.
Ich habe mich dabei an der Doku orientiert:
https://docs.typo3.org/m/typo3/reference-coreapi/12.4/en-us/ApiOverview/ContentSecurityPolicy/Index.html#site-specific-frontend
Hat noch jemand damit Probleme?

andreas,
@andreas@karlsruhe-social.de avatar

@brotkrueml @danielsiepmann
@muckz
@eric_maechler @wowa_TYPO3
Chris Müller hat mich schließlich in die richtige Richtung geschupst: Meine Regel zu ‘script-src’ hätte doch greifen können, wenn ich die vorhandenen nicht erweitert, sondern mit "mode: set" überschrieben hätte. Hilfreich war dabei auch die deutlich aussagekräftigere Fehlermeldung im Chrome.

neo__pessimist, to Musicals

The abduction of the Starchild.

One of my favorite non-pirate sketches as of late.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • Leos
  • GTA5RPClips
  • osvaldo12
  • thenastyranch
  • DreamBathrooms
  • khanakhh
  • magazineikmin
  • InstantRegret
  • Youngstown
  • slotface
  • mdbf
  • love
  • kavyap
  • rosin
  • megavids
  • everett
  • cubers
  • ethstaker
  • Durango
  • ngwrru68w68
  • tacticalgear
  • modclub
  • cisconetworking
  • provamag3
  • anitta
  • normalnudes
  • tester
  • JUstTest
  • All magazines