从 macOS 钥匙串弹窗到 GitLab SSH:一次自建 GitLab 访问方式优化实践
一、问题背景
某些项目在 macOS 上通过 IDE 打开时,会不断弹出类似下面的系统授权窗口:
git-credential-osxkeychain wants to use your confidential information stored in "gitlab.example.internal" in your keychain.
这类弹窗通常不是 GitLab 服务端异常,而是本机 Git 在访问 HTTPS remote 时,调用 macOS Keychain 凭据助手读取用户名、密码或 token。