すべての記事
-
Detecting security tests that accidentally run with administrator authority
Ensure a security test is exercising the intended low-privilege identity rather than a privileged fixture default. This original method checks effective authority before trusting a denied-access assertion or a successful user workflow.
-
安全なデフォルトとフェイルクローズ設計
Saltzer と Schroeder のフェイルセーフなデフォルト原則では、アクセスを明示的な許可に基づかせ、誤りが許可ではなく拒否につながるようにする。現代の実装では、既定で拒否する認可、安全設定がなければ起動しない構成、エラー時にアクセスを開かず閉じる経路を意味する。
-
LLM アプリの検索基礎:チャンク分割、文章識別子、取得した内容への引用
検索拡張生成は、取得した文章をモデルに渡す。重要なのは、文書の分割方法、各チャンクが持つ文脈、そして読者が確認できるよう回答を具体的な文章へ結び付ける方法である。
-
Runbooks für den Betrieb: Anleitungen, die eine Fremde nachts ausführen kann
Ein Runbook pro Dienst beantwortet in dieser Reihenfolge: Was tut der Dienst, woran erkennt man in einer Minute, ob er gesund ist, welche bekannten Störungen gibt es mit Symptom, Diagnosebefehl und Gegenmassnahme, welche Handlungen sind sicher, welche gefährlich, und wer ist wann zu eskalieren; geprüft wird es von jemandem, der es nicht geschrieben hat.
-
Mapping a code-review claim to the exact changed behavior it supports
Build a compact review map that prevents unrelated passing checks from being used as evidence for a newly changed behavior.
-
ss で待ち受けポートと所有プロセスを見つける
ss -tulpn は、待ち受け中のすべての TCP/UDP ソケットと所有プロセスを一覧にする。バインドアドレスから、公開範囲がローカルのみ、ネットワーク全体、デュアルスタックのいずれかが分かる。アドレスを正しく読むことで、意図して公開したサービスと意図せず公開したサービスを区別できる。
-
Service accounts across OS families: least privilege for an agent's own background services
Every OS offers a way to run a service without a normal login and without a hand-managed password: Linux system users with a nologin shell or systemd's DynamicUser=, Windows virtual accounts and group managed service accounts (gMSA), and macOS daemon users. Picking the narrowest one matters for anything an agent installs to run unattended.
-
Canonicalize URLs without changing meaning
Use an application-defined comparison key while retaining the exact request URL when normalization might alter routing or signatures.
-
Zugriffsrechte nach dem Minimalprinzip vergeben
Jede Identität – Mensch, Dienst, Agent – erhält nur die Rechte, die ihre normale Aufgabe braucht, und nur so lange, wie sie sie braucht: eigene Datenbankrolle je Dienst mit GRANT auf das Nötige, Prozesse ohne root und mit einzelnen Capabilities statt Allmacht, zeitlich begrenzte Erhöhung für Menschen, regelmässige Entrümpelung.
-
Distributed locks and leader leases: expiry, fencing tokens and what a lock cannot promise
A distributed lock is a lease that expires; a process paused by garbage collection, CPU contention or a delayed network can keep acting after its lease has passed to someone else. Only a monotonically increasing fencing token checked by the protected resource makes such a lock safe for correctness, and a lock used merely to avoid duplicate work needs less.
-
投機的ファンアウト:1回のリクエストで意思決定モデルに全質問を送り、コードで判断する
TypeSafeは1つのリクエストの全質問を同じ状態に対して並列評価します。そのため文書化されたパターンでは、一部の分岐だけで必要なものも含め、ワークフローで必要になり得る全質問を1回の呼び出しにまとめ、無関係な回答はコードで無視します。ベンダーのクックブックは、自社の例でバッチリクエストのコストが逐次呼び出しの12.2分の1、速度が10.0倍だったと報告しています。
-
Verifying GitHub webhook signatures: X-Hub-Signature-256, timing-safe comparison and delivery IDs
GitHub signs every webhook delivery with HMAC-SHA256 over the raw request body and sends it as sha256=<hex digest> in the X-Hub-Signature-256 header. A receiver must recompute that digest from the exact bytes received, compare it with a constant-time function, and use X-GitHub-Delivery to recognise redelivered events; the older X-Hub-Signature (HMAC-SHA1) is kept only for compatibility.
-
複数のリリース系列を支える:どの修正をどこに適用するか
サポート方針は、各リリース系列の状態(機能開発、バグ修正、セキュリティのみ、サポート終了)の表と、修正の種類ごとのバックポート先の規則で構成される。Pythonは系列に2年間のバグ修正リリースと、その後3年間のセキュリティのみのリリースを提供する。Djangoは重大な修正を直近の機能リリースに、安全性とデータ損失の修正を直近2つと長期サポート系列に戻す。Rustは最新の安定版のみを支える。小規模プロジェクトは表を公開し、守れる最小限の約束を標準とすべきである。
-
複数の情報源を使う回答では根拠台帳を作る
重要な主張をそれぞれ情報源の節、バージョン、不確実性と対応付け、情報をまとめる際にも矛盾が見えるようにする。
-
Aus einem Fehler einen Regressionstest machen
Vor der Korrektur wird der Fehler als automatischer Test nachgestellt, der aus dem gemeldeten Grund fehlschlägt; die Korrektur macht ihn grün, und der Test bleibt als Wächter. Mit pytest lässt sich der eine Test isoliert wiederholen (`--lf`), und ein aufgeschobener Fehler wird als `xfail(strict=True)` dokumentiert, damit ein stilles Verschwinden auffällt.
-
Indoor line-drying time tracks the gap between room temperature and dew point more closely than relative humidity alone
Hypothesis: the National Weather Service describes the dew point as the temperature to which air must be cooled to reach 100 % relative humidity and notes that relative humidity can be misleading because the same figure means different moisture at different temperatures; the proposal is that, for similar wet loads weighed at intervals on the same indoor rack, the time to a stable mass is ordered better across days by the difference between room temperature and dew point than by relative humidity, in a within-household comparison; no result is claimed.
-
Testdaten mit Buildern aufbauen: gültige Vorgaben, benannte Abweichungen
Ein Testdaten-Builder liefert für jede Entität ein gültiges Standardobjekt und lässt den Test nur die Felder setzen, auf die seine Aussage ankommt. So liest man im Test, was zählt, und eine neue Pflichtspalte ändert eine Stelle statt hundert Tests. Das Vorgehen grenzt sich von geteilten Fixtures und der Object Mother ab, deren enge Kopplung Martin Fowler beschreibt.
-
update-crypto-policiesでRHELのシステム全体の暗号ポリシーを切り替える
RHELのシステム全体の暗号ポリシーは、OpenSSL、GnuTLS、NSS、libkrb5、OpenSSHがデフォルトで提示するアルゴリズムとプロトコルのバージョンを設定する。各アプリケーションの設定を編集する代わりに1つのコマンドで変更できる。この手順では、ポリシーの表示、設定、テストと、実行中のサービスが新しい設定を取り込むために再起動を要する理由を扱う。
-
Solaris Zones: what the global zone controls and how kernel zones differ from non-global zones
The global zone administers every non-global zone; zoneadm/zonecfg subcommands other than listing and help require the global zone and specific authorization. A kernel zone runs its own separate kernel and update level, unlike a non-global zone which shares the global zone's kernel.
-
Unreal Lumen: choose tracing and quality around the scene you must render
Evaluate Lumen’s dynamic indirect lighting and reflections through tracing representation, scene structure, scalability and repeatable visual tests.
機械可読: JSON