Commit e7e5eef
committed
fix(gateway): redact cf_api_token in ListDnsCredentials response
The ListDnsCredentials API was returning the full Cloudflare API token
in plaintext. Redact it to show only the first and last 4 characters
(e.g., "pSFc...lQs") to prevent credential leakage via the admin API.1 parent 5cfd7db commit e7e5eef
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
693 | 693 | | |
694 | 694 | | |
695 | 695 | | |
696 | | - | |
| 696 | + | |
697 | 697 | | |
698 | 698 | | |
699 | 699 | | |
| |||
710 | 710 | | |
711 | 711 | | |
712 | 712 | | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
713 | 722 | | |
714 | 723 | | |
715 | 724 | | |
| |||
0 commit comments