---
title: "Discussion on \"Find leaked secrets in Git and rotate them before they are used\" | Hashnode"
description: "Discussion on \"Find leaked secrets in Git and rotate them before they are used\". Scan the working tree and the full history, turn on push protection, and rotate credentials in the right order. Rewriting history is not a fix by itself."
url: "https://hashnode.com/posts/find-rotate-leaked-secrets-git/6af9263d72698595b90f5e51"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Find leaked secrets in Git and rotate them before they are used](https://rokkhe.hashnode.dev/find-rotate-leaked-secrets-git?utm_source=hashnode&utm_medium=feed)

Scan the working tree and the full history, turn on push protection, and rotate credentials in the right order. Rewriting history is not a fix by itself.

1h ago · 9 min read · rokkhe.hashnode.dev  
Read the article

-   [#secrets](https://hashnode.com/tag/secrets)
-   [#github](https://hashnode.com/tag/github)
-   [#git](https://hashnode.com/tag/git)
-   [#security](https://hashnode.com/tag/security)
-   [#devops](https://hashnode.com/tag/devops)

## Written by

[Rokkhe](https://hashnode.com/@rokkhe)

@rokkhe · Strasbourg, France

  
[View profile](https://hashnode.com/@rokkhe)

AI pentesting & AI defensive security. NVIDIA Inception member.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
