-
Notifications
You must be signed in to change notification settings - Fork 22
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
Limit sr3 declare
's scope when options and configs specified
#1008
Comments
Why is it marked "invalid" ? I get the gist of the question... not clear how to implement... I saw your system times when you had --users in the declare... yeah... it doesn't care which configs are specified, it checks all users all the time.
|
perhaps the "invalid" tag needs some clarification. it means the issue itself is mis-reported, or inaccurate. it means the bug report isn't any good. that's what "invalid" usually means in issue trackers. I think the submitter is thinking the behavior of the app is not valid... If you mean the behaviour of the app is bad, the correct label is "bug" |
Oh.. I interpreted it as "something isn't right" in the code. My bad |
The way We shouldn't need to re-declare users/exchanges when it isn't necessary. |
when parsing a config file:
So all users are defined in files that are included in every config file, it's hard to see what scope an analyst is expecting. If you don't do all the users all the time, then you have to allow for CRUD (create update delete)... so... how to indicate scope... I guess check the broker and post_broker options, and only deal with users in those settings? |
and it's even an English word... https://en.wiktionary.org/wiki/grappe#:~:text=(file)-,Noun,bunch%2C%20cluster although a heck of a lot more obvious in French. Actually, I thought the wictionary was talking about English words, but it might just be documenting a French word in English... why it would do that... no idea. |
When running Lines 1353 to 1360 in 7d8e901
For the rest of the code, it iterates through Line 1377 in 7d8e901
We already have methods in |
discussing... we agree that:
|
Plan of action:
|
To test, on dev
In flow test,
|
It's a user declaring loop... can be either source or subscriber... if that' isn't how it is, then there must be two loops... |
Fix #1008 and update documentation
Situation
When using
sr3 declare
, it's been noticed on multiple occasions that it can be dangerous in a production environment, even when a configuration is specified and limited to the--users
option.Essentially, running
sr3 --users declare my-component/my-config
will go through all ofadmin.conf
and try to declare all users and all exchanges specified in the configuration.Suggestions/Improvements
--users
only thedeclare source
entries should be affected fromadmin.conf
.--exchanges
option that would only declare the exchanges fromadmin.conf
admin.conf
.The text was updated successfully, but these errors were encountered: