-
Notifications
You must be signed in to change notification settings - Fork 39
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
[RFE] Use config/settings*
for configuring "secrets", but not "configs"
#486
Comments
This is in a similar vein to #484 but a bit of a different subject matter. Could arguably be merged into one issue. |
Interesting idea. I could see some of this stuff possibly living in the guides repo where we store the default rubocop configs.
I'm fine with making everything except for the secrets publicly visible. I don't think there's anything to discuss in there, but ¯\_(ツ)_/¯ |
FWIW, here's the currently running config
|
Oh, And I know from personal experience that there has been "discussion" around that topic: 😄 |
I think I'd like it the other way around from the title. That is, store default values in config (perhaps on config/environments/production.yml), and keep secrets in Rails' config/secrets.yml (now that we are on 5.2 we can use that). From a configuration perspective, though, it's weird to put "repos" into the settings when they aren't in the database. That is, we add repos to the database on the fly, and then add the configuration afterwards. Having them in configuration first seems backwards. That being said, maybe the list of repos being monitored can also be config driven. Then it won't be so weird because they are predefined already. |
I can get behind that for an idea. Not sure what it would take, but maybe having
Yeah, I did mention that was a miss-interpretation on my part in the description, but yes I agree putting this in the configs might be a bit weird, if not wrong all together. That said, there are conversations like this that happen: Where folks who aren't running the bot in production have no insight into this information what so ever, where having it as a That all said, I definitely see this "RFE" as something that is fluid and more of a discussion, along with this one, for ideas to improve in no way meant to be a "this is how is should be done" decree, as I am sure I am missing some necessary details. |
Discussion spawned from #485 (comment)
A note on my previous confusion
I want to clear up that part of this issue was opened up based on a incorrect assumption about how
included_repos
/excluded_repos
worked:https://github.com/ManageIQ/miq_bot/blob/ca52db9/README.md#enabling-and-disabling-workers
Which I was under the understanding is that this was used to disable what repos are monitored by the bot overall, not what repos are monitored by specific workers in a multi-worker-type environment. I think my points about this still are valid, but wanted to mention this prior in case this wasn't clear to anyone else.
Rational
There are items in the
config/settings*
that are worth being made public for viability for contributors that don't have server access, specifically the newly addedlabels:
section.Suggestion
Create a new configuration setting
config_repo:
that accepts a git URL that can contain one or many yaml files that can be merged into the existingSettings
object.This way, it allows public discussion when something is a configuration issue for the bot for things that don't need to remain secret. We could add it as part of
ManageIQ/guides
, or create a new repo, for examplemiq_bot_config
.In addition, it might not hurt have some seed files in that repo for the bot to handle what
Repo
objects are being added, and it would allow other users to suggest what repos should be watched or at least be aware of what currently being monitored by the bot.The text was updated successfully, but these errors were encountered: