-
Notifications
You must be signed in to change notification settings - Fork 76
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
The no config file found
message is unclear for new users
#2164
Comments
@NevilleS , @ThomasLaPiana can we switch back to the more user-friendly method of defaulting to generating this and providing a helpful error if they don't have write permissions? |
Here's another option to consider: we don't need to "warn" the user at all, we can just remove the message. With few exceptions, are we at the point now where most CLI commands can be run without a config file entirely? Exceptions would include |
To summarize my understanding: the
Is that about right? |
What are the CLI commands (or UI components) that can't be run without this file? Maybe it makes sense to generate these when those are used? |
Actually I wasn't super precise about that: the file itself should never be required, even for I'd very much like to keep the behaviour of not writing the file out as a side-effect of running CLI commands, because it's behaviour that has caused some deployment pains a few times for us... so if option 2 or 3 is doable, that'd be my preference! What do we think: is it reasonable to just remove the warning entirely? Do we really need to guide users to create a file if it's unnecessary for most usage? |
I feel like I'm still missing something. Are there any cases where not having this file would block a user from doing anything in the UI or CLI? If not let's fix the right problem! |
@rsilvery Nope, this file is never required. There are certain configuration values that are required to run the webserver, but those can be set via environment variables. The simplest solution to me seems like removing that "warning" altogether. If a user tries to run the webserver without the necessary values we handle that separately and let the user know. Currently I am not sure if the "warning" is actually serving much of a purpose other than letting the user know that they could be using a configuration file. |
Yes, this makes sense to me. Thank you both for patiently explaining :) |
Is your feature request related to a specific problem?
The CLI will no longer write out a
fides.toml
be default whenever it is run, this leads to users seeing theno config file found
message every time they run the CLI without a clear idea of why that is the case.Describe the solution you'd like
We should update the message to include mention of the
fides init
command that will write out the config fileDescribe alternatives you've considered, if any
This would primarily be hit by people running
fides deploy
for the first time, maybe we could make it a default part of thefides deploy up
codepath?Additional context
This was introduced with Fides 2.4.0
EDIT January 14, 2023: We've decided that the execution plan is to remove the warning completely. More details in the comments
The text was updated successfully, but these errors were encountered: