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

Deprecate --trusted. #1264

Merged
merged 3 commits into from
Dec 4, 2024
Merged

Deprecate --trusted. #1264

merged 3 commits into from
Dec 4, 2024

Conversation

squidarth
Copy link
Collaborator

@squidarth squidarth commented Dec 4, 2024

🚀 What

See thread for context:

  • The --trusted flag is quite confusing for users, almost all of the time, you want to set it to true, but the default is false. At this point, from how people have been using Truss, there is not really a need for at all, and it serves as a major source of confusion.
  • We have already essentially deprecated the --trusted flag for Chains and never supported it.

The behavior for secrets will now be that secrets will be mounted on the Truss. You still need to declare which secrets you want to access in the config.yaml file to access them. We throw a nice error in Truss if you try to access a secret that is not there.

💻 How

🔬 Testing

cli_py_—truss__Codespaces__zany_happiness

@squidarth squidarth marked this pull request as ready for review December 4, 2024 05:18
truss/cli/cli.py Outdated Show resolved Hide resolved
Co-authored-by: Bola Malek <bola@baseten.co>
@@ -1182,7 +1179,7 @@ def push(
tr,
model_name=model_name,
publish=publish,
trusted=trusted,
trusted=True,
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it would be cleaner to strip this parameter/argument out of any functions / APIs and mace a change on the backend that hard-codes it to true.

@squidarth
Copy link
Collaborator Author

Will follow-up with the changes marius proposed

@squidarth squidarth merged commit 5da6b48 into main Dec 4, 2024
4 checks passed
@squidarth squidarth deleted the sshanker/deprecate-trusted branch December 4, 2024 20:36
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