On Wed, May 16, 2012 at 3:33 PM, David Sommerseth
<openvpn.l...@topphemmelig.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 16/05/12 14:03, Alon Bar-Lev wrote:
> [...snip...]
>> But if I get this right, a new configuration option is needed, not
>> compile time directive, something like:
>>
>> --setenv-data [-]<data>, ...
>>
>> data :: cert-digest-sha1
>>
>> This way, only users which require this functionality may enable
>> it and perform hash of the chain. No stability issues in this
>> mode.
>
> I think when James is concerned about stability issues, it is more the
> situation of the code changing than growing the environment list too
> long.  However, a too big environment list may cause stability issues
> as well (overflow situations, etc).  So you have a good argument as well.
>
> (In my case with the eurephia support, I added the #ifdef to make it
> more likely that it would be accepted by James.)
>
>> In this scheme we can add more data types if required, and assign
>> data types for existing functionality, allowing to disable using
>> "-", example is cert-serial or cert-subject or certh-depth.
>>
>> What do you think?
>
> I like this idea.  However, the plug-in v3 API is probably solving
> some of these things as well, as that provides access to the whole
> X509 structure.  That doesn't solve it for scripts, though, but for
> plug-ins that will provide all the information ever needed directly.

Oh... so if the 2.3 can provide this information to your plugin, can
we remove this entirely?

> But if I see it from a security perspective, reducing the amount of
> environment variables and only providing the information requested for
> makes a lot of sense - and this would affect both plug-ins and scripts
> too.

But plugins should not communicate via environment...
I was confused, as I concluded that if you set the environment the
target consumer is a script.

>  So from a 'need to know' basis, I like this approach.  But if we
> add a revolution here, it's probably better suited for a v3.0 scope.
> However, if we provide a way of backwards compatibility, we can scope
> it for v2.x.

Oh... I think that if you can do this with the v3 API we can simply
remove the code.

> What I'm actually thinking, in regards to backwards compatibility, is
> that there is a default environment variable list which consists of
> the variables we provide today.  If --setenv-data is used, this list
> is reset.  So if you use --setenv-data, you need to also include those
> variables which was there before - if you really need them.  It will
> naturally require more thinking when this is being configured by the
> users.

I thought of having the default as enabled and put '-' before element
to remove...
-* can remove all like Gentoo USE flags :)

But now that you describe you can do this using the plugin API, why
not modify the plugin to perform this and just remove this?

Alon.

Reply via email to