The upcoming Rails credentials item at https://t.co/6SX7zmEyrA.creds will now also look for .env.
I described the file as “.env, which supports command interpolation.”
I said command interpolation lets you fetch keys directly from 1password or the like in development.
I said Rails 8.2 will use Sec-Fetch-Site instead of cookie tokens for CSRF protection by default.
Rails 8.2 is getting a new combined credentials accessor.
The combined credentials accessor searches ENV first, then the encrypted credentials.
I noted that the accessor can be reconfigured to add custom lookup backends.
I shared https://t.co/6SX7zmEyrA.creds about the combined Rails credentials accessor and linked https://t.co/NIjYNQFnV7 about custom lookup backends.
I praised browsers for compressing complexity like this.
I called Rosa’s work “Stellar work by Rosa” after she extracted this from Fizzy.
I shared https://t.co/eXgjulSASn with my post about browser-based CSRF protection.
I’m adding schematized JSON attribute accessors to Rails for settings and other data bags that need useful defaults and typed values without requiring a migration whenever their contents grow.
Rails is getting schematized JSON attribute accessors named has_json and has_delegated_json.
I see these accessors as helpful for settings, flags, and other data bags that can grow without migrations.
These data bags can need defaults and typed assignment from UI strings.
I loved getting a code review from @adrienpoly on the upcoming API for Fizzy.
The review alerted me to Rails' built-in authenticate_or_request_with_http_token.
I said, “Didn't even know we had that!” about Rails' built-in HTTP-token authentication.