Skip to content

Add System: Trust: Settings page - #7854

Merged
AdSchellevis merged 5 commits into
masterfrom
trust_settings
Sep 10, 2024
Merged

AdSchellevis merged 5 commits into
masterfrom
trust_settings

Conversation

@AdSchellevis

Copy link
Copy Markdown
Member

This PR offers our Trust settings it's own configuration area, moves store_intermediate_certs into it and adds the following functionality:

  • Optionally deploy CRL's into their designated place, so the default OpenSSL can make use of them
  • Make legacy_sect an optional feature, enabled by default to not change current behavior
  • Allow configuration constraints for the following parameters when the OpenSSL consumer doesn't offer its own: CipherString, Ciphersuites, groups(Curves), MinProtocol[DTLS]

todo:

  • implement 'crl' event for local CRL's
  • maybe, optional autofetch CRL's for known CA's

…ermediate_certs setting to new module including migration
…lush CRL's to local trust store when requested.

This implements the following options:

* Enable/Disable legacy providers (enabled by default, which is the current default)
* Option to write specific configuration constraints, when enabled, CipherString, Ciphersuites and MinProtocol[DTS] can be configured

One last piece of the puzzle is the "crl" event action, which should deploy to the local trust store as well ehen requested.
@AdSchellevis AdSchellevis added the feature Adding new functionality label Sep 10, 2024
@AdSchellevis AdSchellevis self-assigned this Sep 10, 2024
@@ -0,0 +1,74 @@
<form>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

quite the array of settings after all :)

Comment thread src/opnsense/mvc/app/models/OPNsense/Core/Menu/Menu.xml Outdated
</groups>
<MinProtocol type="OptionField">
<OptionValues>
<SSLv3>SSLv3</SSLv3>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this one is compile time disabled for sure so not applicable

unset($config['system']['prefer_ipv4']);
}

$sync_trust = !empty($pconfig['store_intermediate_certs']) !== isset($config['system']['store_intermediate_certs']);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see below, looks used $sync_trust and could be removed

@fichtner fichtner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor things but LGTM, thanks a lot!

@AdSchellevis
AdSchellevis marked this pull request as ready for review September 10, 2024 18:48
@AdSchellevis

Copy link
Copy Markdown
Member Author

@fichtner thanks for the review, made some changes and hooked the CRL event (which I forgot to add by the way). I might still take a look at the automatic CRL fetching, but in terms of functionality this PR is finished and ready to be merged.

@fichtner

Copy link
Copy Markdown
Member

sweet, thanks. let's go!

@AdSchellevis
AdSchellevis merged commit 0378c65 into master Sep 10, 2024
fichtner pushed a commit that referenced this pull request Oct 7, 2024
(cherry picked from commit 0378c65)
(cherry picked from commit 76f84fd)
(cherry picked from commit e8212a6)
(cherry picked from commit 5497d27)
(cherry picked from commit ba2e9d4)
fichtner pushed a commit that referenced this pull request Nov 4, 2024
@AdSchellevis
AdSchellevis deleted the trust_settings branch November 26, 2024 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Adding new functionality

Development

Successfully merging this pull request may close these issues.

2 participants