Skip to main content

ClickHouse:Mission Critical Audit Logs

· 17 min read ·
Castamere
Code Aesthetic

A single change to a schedule, a single toggle of permissions—at the moment, it’s just another ordinary entry in the system; but a few months later, it might suddenly become the question everyone is asking: “Who changed this restaurant’s menu three months ago?” The answer lies in the audit log, but ensuring that it’s preserved and retrievable requires a revolution in storage and querying

This article covers the following topics:

  • ClickHouse and Audit Log
  • Two issues I ran into in production, and the thinking they prompted

Zsh Alias Preview

· 4 min read ·
Castamere
Code Aesthetic

alias 用多了之后就有一个问题:敲 gco 的时候记得它是 git checkout,但 gcb 是什么来着?dcu 又是什么?通常的做法是 which gcb 看一眼再回来重敲一遍,挺打断思路的。笔者写了个 Zsh 插件,在敲命令的时候直接把 alias 展开后的内容显示在 message area,免去这一步

demo

Github SAML SSO

· 2 min read ·
Castamere
Code Aesthetic

解决 Github SAML SSO 导致无法 clone 代码的问题

Error

Cloning into 'xxx'...

remote: The 'xxx' organization has enabled or enforced SAML SSO.

remote: To access this repository, you must re-authorize the OAuth Application 'Visual Studio Code'.

fatal: unable to access 'xxx': The requested URL returned error: 403