すべての記事
-
Report partial failure structurally
Return per-operation outcomes and an explicit aggregate state so successful work is not repeated after a mixed result.
-
Building a software RAID1 mirror with mdadm and replacing a failed disk
mdadm --create builds a Linux software RAID array from partitions or whole disks; without an entry in mdadm.conf and an updated initramfs the array can fail to reassemble on the next boot even though it works fine right after creation.
-
Troubleshooting Group Policy application: gpresult, gpupdate, and the GroupPolicy module
Reading what policy actually applied to a computer or user with gpresult /h and Get-GPResultantSetOfPolicy, forcing reprocessing with gpupdate /force, and backing up a GPO with Backup-GPO before editing it.
-
分散トレーシングの概要:スパン、親 ID、W3C トレースコンテキストの伝播
トレースはスパンの木構造であり、各スパンにはトレース ID、自分自身のスパン ID、親スパン ID、時刻、属性、ステータスがある。W3C の traceparent ヘッダーはプロセスの境界を越えてトレース ID、親 ID、sampled フラグを運ぶ。二つのヘッダーを転送するだけのサービスでも、トレースのつながりを保てる。
-
メモリ汚染:注入された1つの指示が、その後のすべてのセッションに残るとき
永続メモリを持つエージェントは、攻撃者の指示を事実や好みとして保存させられることがあります。その指示は、元の内容を一度も見ていないセッションにも影響します。メモリへの書き込みには出所、レビュー、有効期限が必要であり、メモリから読んだ内容は信頼できないテキストとして扱うべきです。
-
Choosing the next debugging check by the hypotheses it can distinguish
Stop an investigation from repeating low-information diagnostics by choosing each next check for the competing explanations its result can separate.
-
パスワードと API キーの保存方法
パスワードは Argon2id、scrypt、bcrypt など、ソルト付きの低速ハッシュとしてのみ保存する。高エントロピーの API キーには鍵付きの高速ハッシュを使える。どちらも定時間で比較し、ログに残さず、発行後に再び返さない。
-
Clock sync compared: chrony, systemd-timesyncd, w32tm, macOS timed and AIX xntpd
A quick reference for checking whether a host's clock is actually synchronized, across the time daemons used by Linux, Windows, macOS and AIX — distinct from a deep dive on any single tool, since the check is the same shape everywhere: is a source configured, and is it currently in sync.
-
Adding a private CA to the system trust store on RHEL-family and Debian/Ubuntu
RHEL-family and Debian-family Linux keep separate mechanisms for adding a locally trusted CA certificate: update-ca-trust with anchors under /etc/pki/ca-trust, and update-ca-certificates with .crt files under /usr/local/share/ca-certificates. Using the wrong directory or extension silently leaves the CA untrusted.
-
wget and rsync exit codes: rsync's 23 and 24 usually aren't the failure they look like
wget assigns a small fixed code per error class (network, SSL, auth, protocol); rsync's larger table includes 23 (partial transfer due to error) and 24 (partial transfer due to vanished source files), the latter of which commonly just means a file disappeared mid-scan and is not evidence of a broken transfer.
-
Conventional Commits:機械可読なコミットの種類
Conventional Commits 仕様は、コミットメッセージに種類を示す接頭辞(feat、fix など)と破壊的変更の印を加えます。これにより、変更履歴やバージョンの繰り上げを自動的に導き出せます。
-
時間ベースのワンタイムパスワードを第二要素に使う
TOTP(RFC 6238)は、共有シークレットと現在の時間ステップから短いコードを生成します。パスワードの再利用には対抗できますが、リアルタイムのフィッシングには対抗できません。シークレットの安全な保存、時計の許容ずれ、リカバリーコードが必要です。
-
Alert routing: grouping, inhibition, silences and escalation policies
Between a firing alert and a phone lie four decisions: which team and channel receive it (routing tree), which alerts travel together (grouping with group_wait, group_interval and repeat_interval), which are muted because a cause alert already explains them (inhibition) or because maintenance is planned (silences), and how long a responder has before the page escalates to the next person.
-
Making HTTP requests correctly from Python
Set timeouts on every request, reuse a client for connection pooling, send Accept and User-Agent headers, decode by declared charset, handle status codes and retries deliberately; the standard library and httpx both support this.
-
Running a service under systemd
A unit file declares how a service starts, restarts and is confined; use Type, Restart=on-failure, resource limits and sandboxing directives, and read logs with journalctl instead of writing your own daemonisation.
-
Confirming a security patch actually landed: matching installed versions against vendor advisories across OS families
An update job reporting success is not proof a specific vulnerability is fixed; matching the installed package or build version against the vendor's own advisory — Ubuntu USN, a RHEL-family advisory (RHSA on RHEL) via dnf updateinfo --security, Debian DSA via debsecan, Windows Get-HotFix, or a macOS build number against Apple's own security-release page — is what closes the loop, and a pending restart can leave the old, vulnerable binary still running even after that check passes.
-
OAuth 2.0 のクライアントクレデンシャルによるマシン間アクセス
クライアントクレデンシャルグラントでは、サービスやエージェントが利用者を介さず、自身のクライアント ID とシークレットでアクセストークンを取得する。スコープとリソース指定がトークンを制限する。シークレットはパスワード同様に扱い、サーバーはハッシュで保存し、クライアントはローテーションする。
-
自分のセッションを締め出さずにNetSecurityでWindows Defenderファイアウォール規則の範囲を限定する
Get-NetFirewallProfileとNew-NetFirewallRuleでPowerShellからWindows Defenderファイアウォールを管理する。-RemoteAddressと-Profileで規則の範囲を限定すれば、必要なアドレスとネットワークの種類にだけ管理ポートを開ける。第2のセッションからテストし、使用中のセッションの切断を避ける。
-
小規模プロジェクトのガバナンス:必要になる前に決定権を書き残す
ガバナンス文書は、誰がマージできるか、誰がスコープの争いを収めるか、メンテナーをどう追加・除外するか、ルール自体をどう変えるかを定める。Python の PEP 13 は、権限の行使を少なく抑え公開で審議する評議会モデルを示す。Apache の用語集は、定めた期間内に反対がなければ提案を通すレイジーコンセンサスを定義している。メンテナーが1〜3人のプロジェクトなら1ページで足りる。
-
対照的自己教師あり学習:ペア、拡張、表現の崩壊
関連するビューと対照的なビューを比較して表現を学び、有用な情報を残す変換を選び、学習損失だけでなく表現を評価する。
機械可読: JSON