-
Notifications
You must be signed in to change notification settings - Fork 3
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
Fully opt-in organization token support #110
Conversation
I'm going to run this by my co-author
@jezdez this is a new capability for anaconda-anon-usage that does not alter the functionality for our community users, but enables a system administrator to add an organization token by including it in a standard system location. |
@mcg1969 I'll be able to take a look Monday |
oh of course! it's definitely not more urgent than that |
Here is an example script that organizations might use to install an organization token onto their Mac / Linux boxes using an asset management system. https://gist.github.com/mcg1969/3ec99570b7ba5d4d263499f1756ed4fd Example run:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a few clarifying comments, nothing jumps at me except for the change of activation procedure of the plugin (the system org-token exemption).
@jezdez I realized that there would be a simpler way to manage this if I had had the foresight—and that would be to change the
If I do that, then I can just leverage the standard configuration priority mechanism; e.g., by putting This would work great except it would break existing installations of anaconda_anon_usage, unfortunately. I tried it, and putting a non-bool string in that config value breaks conda. |
This addition allows
anaconda_anon_usage
to be used to help disaggregate usage from an organization while still preserving per-user anonymity. This is a 100% opt-in option that requires explicit action by someone with system administrator privileges.To use it, an administrator would deposit a short token in a system location, presumably with MDM software.
/etc/conda/org_token
or/var/lib/conda/org_token
C:\ProgramData\conda\org_token
If this token is present, it overrides the
anaconda_anon_usage: disable
option, and it adds as an additional token to the user agent, prefixed by "o/"; e.g.Placing this token in a system location accomplishes multiple goals.