Skip to content

Fix security vulnerabilities and improve authentication methods - #1

Draft
DirectorVector wants to merge 7 commits into
JasonTiraDev:mainfrom
DirectorVector:main
Draft

Fix security vulnerabilities and improve authentication methods#1
DirectorVector wants to merge 7 commits into
JasonTiraDev:mainfrom
DirectorVector:main

Conversation

@DirectorVector

Copy link
Copy Markdown

Hey Jason! Thanks for sharing your code with me during the .NET Extension Classes session at the SUN Conference! I sat in front of you and we chatted a bit after the session.

I've been working on my own set of docs that teach agents "how to fish" in Syteline using the REST api in DirectorVector/syteline-ido-api-agent-docs. Its currently able to resolve abstract prompts to a set of Syteline API calls that load collections, invoke ido methods, and the best part for my current use case is for Submitting Background Tasks.

Eventually I'll refine docs on updating/inserting/deleting data but for now I was happy with publishing. And of course the next step is to start thinking MCP, which is why your repo piqued my interest! But the first thing copilot identified using the context of my docs is the logging of the token url. So this PR addresses that, but I'd love for you to look it over, test it on your environment to make sure it works.

For reference, my environment, and the docs I generated for Syteline using my env, were performed using the IdoRequestService aka REST v2 with request sending straight to syteline.

The main differences I notice that may make this not work for you if your repo is currently working:

  1. your docs said MgRestService, mine updated to IdoRequestService. Is MgRestService the v1 api?
  2. your auth includes bearer $token in the Authorization header for subsequent requests. Mine has only worked when omitting the word bearer and only passing the token to the header.

Cheers!
Brice

Copilot AI and others added 7 commits March 4, 2026 20:34
…d SSRF

Co-authored-by: DirectorVector <6549973+DirectorVector@users.noreply.github.com>
…ulnerabilities

Fix security vulnerabilities: credential exposure, STDIO corruption, and SSRF
…based auth tool, remove Bearer prefix

- Remove insecure path-based auth tool that leaked credentials in URL path
- Update header-based auth tool to be the primary syteline_get_security_token
- Remove Bearer prefix from Authorization header (use raw token per docs)
- Use DEFAULT_SITE env var for config selection (default: Demo_DALS)
- Update .env.example with DEFAULT_SITE
- Update all documentation (README, AUTHENTICATION_GUIDE, ENVIRONMENT_SETUP, LLM_USAGE_INSTRUCTIONS, IDO_IMPLEMENTATION_VERIFICATION, ReferenceDocs)

Co-authored-by: DirectorVector <6549973+DirectorVector@users.noreply.github.com>
Co-authored-by: DirectorVector <6549973+DirectorVector@users.noreply.github.com>
…rd-leak

Fix credential leak: switch to header-based auth, remove path-based token endpoint
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.

2 participants