On Tue, Jan 14, 2014 at 4:52 PM, Dustin Kirkland
<[email protected]> wrote:
> On Thu, Jan 9, 2014 at 1:37 AM, Seth Arnold <[email protected]> 
> wrote:
>> #5  The pollinate.postinst creates a per-installation tag that is included
>> in requests. While this is convenient for server operators to track how
>> many clients are using their server, downstream consumers such as Tails
>> would need to pre-populate the /var/lib/pollinate/tag file before this
>> package is installed.
>>
>> Could the /var/lib/pollinate/tag creation logic be moved later, into the
>> shell script, to allow more flexibility in how the tag is pre-populated
>> for these downstream users?
>
> This one isn't really possible.  The tag is intended to be
> unique-per-/dev/urandom-device.  Any user on the system can run
> pollinate, and if we put the tag creation logic there, it would mean
> per-user tags.
>
> The tag is voluntary, meaning that any user can remove, update, or
> modify their tag, and still receive the seed via pollinate.
>
> Per IRC:
>
> <sarnold> kirkland: ah, I see
> <sarnold> kirkland: well, fair enough, leave it alone. it works.
> <sarnold> kirkland: like you said, there are options for downstreams
> to do what they want with the tag file after the package is installed.

Actually, I stand corrected.  I was totally wrong here.

In fact, the intended usage of the pollinate script is within the
Ubuntu cloud images themselves, which is created with a debootstrap.
Generating the tag there would mean a unique tag per image, not per
instance, as is intended.

I have committed a solution to this, by generating the tag within the
pollinate itself.  There's a bit of logic there now, to use a system
wide one, if found.  If it's not found, and the script is running as
the daemon user (which is the case when the script fires from upstart
or cron), then it's generated one time and stored in
/var/lib/pollinate/tag.  If the script is running as a normal user,
then a tag is generated for their use.

This was fixed and released in pollen 3.8.

Thanks!

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1246098

Title:
  MIR: pollinate

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pollen/+bug/1246098/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to