Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enhance: add functions for daemon tools to do mTLS #67

Merged
merged 4 commits into from
Dec 16, 2024

Conversation

g-linville
Copy link
Member

@g-linville g-linville commented Dec 5, 2024

This adds a function to set up uvicorn for daemon tools. Uvicorn is the HTTP server that we use in our daemon tools in Python.

The test failures are nothing new and have appeared in other PRs. Probably just something that changed that we need to fix at some point.

Signed-off-by: Grant Linville <[email protected]>
@g-linville g-linville marked this pull request as ready for review December 6, 2024 03:16
Signed-off-by: Grant Linville <[email protected]>
print("error: GPTSCRIPT_CERT env var is empty")
exit(1)

cert_file = tempfile.NamedTemporaryFile(delete=False, suffix=".pem")
Copy link

@iwilltry42 iwilltry42 Dec 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to protect those files with less permissions, e.g. via os.chmod(cert_file.name, stat.S_IRUSR | stat.S_IWUSR) (0600)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call. Just pushed this change.

Signed-off-by: Grant Linville <[email protected]>
@g-linville g-linville merged commit 64f1b28 into gptscript-ai:main Dec 16, 2024
1 of 2 checks passed
@g-linville g-linville deleted the mtls branch December 16, 2024 19:40
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.

3 participants