-
Notifications
You must be signed in to change notification settings - Fork 648
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
Introduce disable audit #1309
Comments
@johnsimons - why
and why not
|
I think you mean:
I like it 👍 @andreasohlund thoughts? |
I like it Sent from my iPhone On 18 jul 2013, at 06:49, John Simons notifications@github.com wrote:
|
About this: "Throw an exception (so that endpoint terminates) at initialization if ForwardReceivedMessagesTo attribute missing and no registry key set. The exception text should explain that they either have to call Current behavior: Auditing is off when the registry keys are not present & the forward attributes in the With the proposed change, is a breaking change: This means that in turning auditing off is no longer the administrator concern but the programmer's. As we now need |
I think audit on/off should be in the hands of the admins so I'd vote to turn it off if no config is present. Ie the same behaviour as in 4.0 Sent from my iPhone On 6 aug 2013, at 21:59, Indu Alagarsamy notifications@github.com wrote:
|
We don’t want to people to accidentally disable auditing – it’s not an admin-only consideration. |
I see your point Udi, lets go ahead as planned Indu On Tue, Aug 6, 2013 at 10:38 PM, Udi Dahan notifications@github.com wrote:
|
Background
In v4 we changed the audit feature so that it can be configured via the registry, this has the advantage of centralized administration of audit queue via group policy.
However this has also introduced a lot of friction to turn off audit per endpoint.
At the moment if the config file does not have
ForwardReceivedMessagesTo
attribute we then check the registryHKEY_LOCAL_MACHINE\SOFTWARE\ParticularSoftware\ServiceBus\[AuditQueue]
and only then we disable the audit feature.So the above workflow has a few disadvantages:
Proposed Solution
.Configure.Features.Disable<Audit>();
ForwardReceivedMessagesTo
attribute missing and no registry key set.The exception text should explain that they either have to call
.Configure.Features.Disable<Audit>();
or useSet-NServiceBusLocalMachineSettings
cmdlet.ForwardReceivedMessagesTo
attribute missing but registry key is set, here is a start:The text was updated successfully, but these errors were encountered: