Skip to content

Security: replace hardcoded secrets, prevent credential leaks, mitigate script injection - #1

Open
devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
devin/1780210576-security-fixes
Open

Security: replace hardcoded secrets, prevent credential leaks, mitigate script injection#1
devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
devin/1780210576-security-fixes

Conversation

@devin-ai-integration

Copy link
Copy Markdown

Summary

Security audit found hardcoded RDP credentials, secrets passed as plaintext workflow inputs, password logged to CI output, and script injection vectors in all three workflow files. This PR fixes all of them:

Critical

  • RDP_USER: Bullettemporary / RDP_PASS: Bullet@12345${{ secrets.RDP_USER }} / ${{ secrets.RDP_PASS }} (Workflow 1 & 2)
  • Write-Host "RDP ready: $u / $p ..." → password removed from log output

High

  • ts_api_key, ts_authkey, ts_tailnet removed from workflow_dispatch inputs; now read directly from ${{ secrets.TS_API_KEY }}, ${{ secrets.TS_AUTHKEY }}, ${{ secrets.TS_TAILNET }}
  • Chain-dispatch payloads no longer forward secrets between workflows

Medium

  • All ${{ inputs.* }} expressions in run: blocks replaced with env: indirection (INPUT_*$env:INPUT_*) to prevent PowerShell injection
  • RDP user removed from Administrators group; only Remote Desktop Users membership retained

Required setup after merge

Add these GitHub repository secrets: RDP_USER, RDP_PASS, TS_API_KEY, TS_AUTHKEY, TS_TAILNET

Link to Devin session: https://app.devin.ai/sessions/d6a24e2eb8454338a4750bb0d6e0e0b1
Requested by: @mohammad1390555

…ential logging, mitigate script injection

- Replace hardcoded RDP_USER/RDP_PASS with ${{ secrets.RDP_USER }}/${{ secrets.RDP_PASS }}
- Remove password from Write-Host log output in Workflow 1
- Replace ts_api_key, ts_authkey, ts_tailnet workflow inputs with ${{ secrets.* }} references
- Route all workflow inputs through env: blocks to prevent script injection
- Remove Administrators group membership for RDP user (keep Remote Desktop Users only)

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant