Skip to content

New feature cert verify#978

Merged
LanutiEmanuele merged 6 commits into
developfrom
feature/cert-verify
May 7, 2025
Merged

New feature cert verify#978
LanutiEmanuele merged 6 commits into
developfrom
feature/cert-verify

Conversation

@LanutiEmanuele

Copy link
Copy Markdown
Contributor

New feature to set cert verify

Description

Now the user can set how to use the certificate

cert-verify can be set to False, True, CA_path
With False the certificate will not be verified
With True the certificate will be verified
With the CA_path the certificate will be verified according to the indicated CA

Changes

I added the 'cert-verify' parameter in suzie q-cfg.
The parameter is read and used by engineobj.
I added a CA for testing purposes.

Type of change

  • New feature (non-breaking change which adds functionality)

Double Check

  • I have read the comments and followed the CONTRIBUTING.md.
  • I have explained my PR according to the information in the comments or in a linked issue.
  • My PR source branch is created from the develop branch.
  • My PR targets the develop branch.
  • All my commits have --signoff applied

@LucaNicosia LucaNicosia left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please add some validation during the load of the context to verify that only a path or bool is passed. Moreover check if the path is valid

Also, add this parameter to the docs

Comment thread suzieq/engines/rest/engineobj.py Outdated
Comment thread tests/conftest.py Outdated
Comment thread tests/unit/engine/rest/test_rest_engine.py Outdated
@LanutiEmanuele LanutiEmanuele force-pushed the feature/cert-verify branch 2 times, most recently from 245a8dd to badfcf2 Compare February 25, 2025 11:27

@rickstardust rickstardust left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please fix the indentation

Comment thread tests/unit/engine/rest/test_rest_engine.py Outdated
Comment thread tests/unit/engine/rest/test_rest_engine.py Outdated
Comment thread tests/unit/engine/rest/test_rest_engine.py Outdated
Comment thread tests/unit/engine/rest/test_rest_engine.py Outdated
Comment thread tests/unit/engine/rest/test_rest_engine.py Outdated
Comment thread tests/unit/engine/rest/test_rest_engine.py Outdated
Comment thread tests/unit/engine/rest/test_rest_engine.py Outdated
@LanutiEmanuele LanutiEmanuele force-pushed the feature/cert-verify branch from badfcf2 to 89c5553 Compare May 6, 2025 12:10
Signed-off-by: Emanuele Lanuti <emanuele.lanuti@stardustsystems.net>
Signed-off-by: Emanuele Lanuti <emanuele.lanuti@stardustsystems.net>
Signed-off-by: Lanuti_emanuele <emanuele.lanuti@stardustsystems.net>
Signed-off-by: Emanuele Lanuti <emanuele.lanuti@stardustsystems.net>
Signed-off-by: Lanuti_emanuele <emanuele.lanuti@stardustsystems.net>
Signed-off-by: Emanuele Lanuti <emanuele.lanuti@stardustsystems.net>
Signed-off-by: Emanuele Lanuti <emanuele.lanuti@stardustsystems.net>
Signed-off-by: Emanuele Lanuti <emanuele.lanuti@stardustsystems.net>
@LanutiEmanuele LanutiEmanuele force-pushed the feature/cert-verify branch from 4e1416f to 6f125c8 Compare May 7, 2025 11:16
@LanutiEmanuele LanutiEmanuele merged commit 11201d7 into develop May 7, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants