github / github/platform-samples

the block confidential script is not blocking the kubeconfig file

Open
#244 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
2.2k
Forks
1.9k
Avg merge
7d 19h
Merged PRs (30d)
1

Description

Hello experts,

We are using the platform samples the block confidential pre-receive script in our environment. It was working as expected.
but when we scanned the GitHub data , we could identify that the kubeconfig files are not getting blocked.

Could you please suggest us to add the best regex to find the kubeconfig file and block it through pre-receive script..

Contributor guide

Open the contributing guide

Research direction

Start by locating the platform sample's block confidential pre-receive script and read how its existing secret patterns are matched. Reproduce the scan with a kubeconfig file, then add coverage for that input and confirm the hook rejects it without breaking existing confidential-file checks.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
devops, security
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.