Skip to contentSkip to conversation

ktls-utils PR needs review

DISCUSSION Chuck Lever III 3 participants 6 messages Apr 22, 2024 – Apr 23, 2024 Handshake upcall for transport layer security

lore
Share & tools
lore
#1 lore raw
Quoted 8 lines · Chuck Lever III

https://github.com/oracle/ktls-utils/pull/54

I seem to recall a similar command line option that we removed because it was insecure.

At the very least this needs a man page update, but I'm not convinced this setting should be allowed.

I agree.

Can we have this only available under some strict usage? Like it can only work started in the foreground (with some -d flag) and it’ll only run for 10mins and then it will exit… something like that would prevent somebody from using it on a permanent basis.

Quoted 6 lines

--
Chuck Lever

#2 lore raw
Quoted 14 lines · Olga Kornievskaia
Quoted 8 lines · Chuck Lever III

https://github.com/oracle/ktls-utils/pull/54

I seem to recall a similar command line option that we removed because it was insecure.

At the very least this needs a man page update, but I'm not convinced this setting should be allowed.

Quoted 6 lines

I agree.

Can we have this only available under some strict usage? Like it can only work started in the foreground (with some -d flag) and it’ll only run for 10mins and then it will exit… something like that would prevent somebody from using it on a permanent basis.

Interesting idea, that would ensure it could be used only for debugging.

Reuben closed the PR because he is having trouble with the OCA signing. But you could add that suggestion to the PR and see what he thinks.

--
Chuck Lever

#3 lore raw
Quoted 21 lines · Chuck Lever III
Quoted 14 lines · Olga Kornievskaia
Quoted 8 lines · Chuck Lever III

https://github.com/oracle/ktls-utils/pull/54

I seem to recall a similar command line option that we removed because it was insecure.

At the very least this needs a man page update, but I'm not convinced this setting should be allowed.

Quoted 6 lines

I agree.

Can we have this only available under some strict usage? Like it can only work started in the foreground (with some -d flag) and it’ll only run for 10mins and then it will exit… something like that would prevent somebody from using it on a permanent basis.

Quoted 7 lines

Interesting idea, that would ensure it could be used only for debugging.

Reuben closed the PR because he is having trouble with the OCA signing. But you could add that suggestion to the PR and see what he thinks.

I am not sure if I agree with the argument; after all, openssl and gnutls both have a standard option disabling the certificate check, too. And you might be needing it under certain circumstances (Self-signed certificates? Initial deployment?).

What we could do is to delegate the functionality to be command-line only (and not via the config file). That way it'll be immediately obvious that this option is enabled, and we would avoid proliferation via a forgotten config option setting.

Cheers,

Hannes

Signature · 4 lines
Dr. Hannes Reinecke                  Kernel Storage Architect
[email protected]                                +49 911 74053 688
SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg
HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich
#4 lore raw
Quoted 23 lines · Hannes Reinecke
Quoted 18 lines · Chuck Lever III
Quoted 18 lines · Olga Kornievskaia
Quoted 8 lines · Chuck Lever III

https://github.com/oracle/ktls-utils/pull/54

I seem to recall a similar command line option that we removed because it was insecure.

At the very least this needs a man page update, but I'm not convinced this setting should be allowed.

I agree.

Can we have this only available under some strict usage? Like it can only work started in the foreground (with some -d flag) and it’ll only run for 10mins and then it will exit… something like that would prevent somebody from using it on a permanent basis.

Quoted 7 lines
Quoted 5 lines

Interesting idea, that would ensure it could be used only for debugging.
Reuben closed the PR because he is having trouble with the OCA signing. But you could add that suggestion to the PR and see what he thinks.

I am not sure if I agree with the argument; after all, openssl and gnutls both have a standard option disabling the certificate check, too. And you might be needing it under certain circumstances (Self-signed certificates? Initial deployment?).

What is missing on Reuben's clients is a CA bundle.

I would rather have one or two fully-described use cases in hand before we decide to (re)introduce something that is as risky as this.

Quoted 4 lines

What we could do is to delegate the functionality to be command-line only (and not via the config file). That way it'll be immediately obvious that this option is enabled, and we would avoid proliferation via a forgotten config option setting.

As I mentioned, we had such a command line option
and removed it.

A step backwards here requires some very strong
justification, IMO.

--
Chuck Lever

#5 lore raw
In reply to Hannes Reinecke
Quoted 26 lines · Hannes Reinecke
Quoted 24 lines · Chuck Lever III
Quoted 14 lines · Olga Kornievskaia
Quoted 8 lines · Chuck Lever III

https://github.com/oracle/ktls-utils/pull/54

I seem to recall a similar command line option that we removed because it was insecure.

At the very least this needs a man page update, but I'm not convinced this setting should be allowed.

Quoted 6 lines

I agree.

Can we have this only available under some strict usage? Like it can only work started in the foreground (with some -d flag) and it’ll only run for 10mins and then it will exit… something like that would prevent somebody from using it on a permanent basis.

Interesting idea, that would ensure it could be used only for debugging.

Quoted 8 lines
Quoted 4 lines

Reuben closed the PR because he is having trouble with the OCA signing. But you could add that suggestion to the PR and see what he thinks.

I am not sure if I agree with the argument; after all, openssl and gnutls both have a standard option disabling the certificate check, too. And you might be needing it under certain circumstances (Self-signed certificates? Initial deployment?).

But do browsers have an option to not verify certificates for https? I think we need to look for real world applications that use TLS and see if they have options to do no verification.

Quoted 14 lines

What we could do is to delegate the functionality to be command-line only (and not via the config file). That way it'll be immediately obvious that this option is enabled, and we would avoid proliferation via a forgotten config option setting.

Cheers,

Hannes
--
Dr. Hannes Reinecke Kernel Storage Architect
[email protected] +49 911 74053 688
SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich