all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#35617: mml secure mode should copy headers to inside the cryptographic payload
@ 2019-05-07  5:20 Daniel Kahn Gillmor
  2019-08-26  6:09 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Kahn Gillmor @ 2019-05-07  5:20 UTC (permalink / raw)
  To: 35617

[-- Attachment #1: Type: text/plain, Size: 1862 bytes --]

In secure mode, during message composition, mml crafts a MIME message
before applying the necessary transformations for cryptographic
protections.

I think the function of preparing this stuff happens in
message-encode-message-body and in mml-generate-mime.

It would be great if those preparations were to copy all the headers
from *outside* of the cryptographic protections (the "cryptographic
envelope") to the top-level part *inside* the cryptographic envelope, so
that they're covered by the cryptographic protections.

The only header you probably don't want to copy is Content-Type, since
the Content-Type outside the cryptographic protections is pretty clearly
different from the one on the inside.

If this simple copy is done, then the subject line of a signed message
can be verified by the client (as can other headers, but Subject is
probably most relevant).

The request above doesn't keep the subject line secret in the case of an
encrypted message, but it sets the stage for doing so.  It is concretely
useful on its own in any case for signed-only messages, and has no
downsides.

Once the headers are regularly copied into the top-level part of the
cryptographic payload, the *outer* Subject for an encrypted message can
be replaced with "Subject Unavailable" -- then mail user agents like
enigmail and K-9 will be able to read the subject of encrypted messages,
but they won't leak outside.  I'll open that as a separate issue once
we've gotten the first part described here taken care of

So this particular feature request is *just* about outbound message
composition and only covers header protection for signed messages.

For incoming message handling of encrypted messages with protected
headers, I have a patch queue ready to handle that (for Subject: at
least) in notmuch-emacs.

          --dkg

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#35617: mml secure mode should copy headers to inside the cryptographic payload
  2019-05-07  5:20 bug#35617: mml secure mode should copy headers to inside the cryptographic payload Daniel Kahn Gillmor
@ 2019-08-26  6:09 ` Lars Ingebrigtsen
  2019-09-29 14:12   ` Lars Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Lars Ingebrigtsen @ 2019-08-26  6:09 UTC (permalink / raw)
  To: Daniel Kahn Gillmor; +Cc: 35617

Daniel Kahn Gillmor <dkg@fifthhorseman.net> writes:

> It would be great if those preparations were to copy all the headers
> from *outside* of the cryptographic protections (the "cryptographic
> envelope") to the top-level part *inside* the cryptographic envelope, so
> that they're covered by the cryptographic protections.

You mean repeat all the headers in the body of the message?

Is there an RFC for stashing headers in the body of messages and using
those instead of the real headers when reading?  Because if not, this
just sounds like it's going to be pretty confusing.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#35617: mml secure mode should copy headers to inside the cryptographic payload
  2019-08-26  6:09 ` Lars Ingebrigtsen
@ 2019-09-29 14:12   ` Lars Ingebrigtsen
  0 siblings, 0 replies; 3+ messages in thread
From: Lars Ingebrigtsen @ 2019-09-29 14:12 UTC (permalink / raw)
  To: Daniel Kahn Gillmor; +Cc: 35617

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Daniel Kahn Gillmor <dkg@fifthhorseman.net> writes:
>
>> It would be great if those preparations were to copy all the headers
>> from *outside* of the cryptographic protections (the "cryptographic
>> envelope") to the top-level part *inside* the cryptographic envelope, so
>> that they're covered by the cryptographic protections.
>
> You mean repeat all the headers in the body of the message?
>
> Is there an RFC for stashing headers in the body of messages and using
> those instead of the real headers when reading?  Because if not, this
> just sounds like it's going to be pretty confusing.

More information was requested, but no response was given within a
month, so I'm closing this bug report.  If there is such an RFC, please
reopen this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-09-29 14:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-07  5:20 bug#35617: mml secure mode should copy headers to inside the cryptographic payload Daniel Kahn Gillmor
2019-08-26  6:09 ` Lars Ingebrigtsen
2019-09-29 14:12   ` Lars Ingebrigtsen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.