Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
e274fcc
Fix pyOpenSSL patching routine
Spindel Apr 18, 2024
5f8058e
Make the models work with SqlAlchemy 2.0 in compat mode
Spindel Apr 18, 2024
d6f879f
Consistently use UTC timestamp without TZ info
Spindel Apr 18, 2024
7b10b60
Fix generate req script
Spindel Apr 18, 2024
09aa6dc
Re-run modern black on the code
Spindel Apr 18, 2024
694479c
CI: allow workflow on manual trigger
Spindel Apr 18, 2024
fffe811
CI: If machine-id doesn't exist, make it so
Spindel Apr 18, 2024
11d8bd1
CI: Ensure openssl is part of the systest container
Spindel Apr 18, 2024
d5bdc23
Add a transient dep on legacy-cgi for python 3.13 deprecation
Spindel Apr 18, 2024
6b6e55e
Allow failures for deprecation tests
Spindel Apr 18, 2024
b72f2d0
re-generate the test fixtures
Spindel Jul 29, 2025
75a7c99
fixup! re-generate the test fixtures
Spindel Jul 29, 2025
3e45a95
use modern cryptography package to generate CA fixtures
Spindel Jul 30, 2025
8a0ef92
testdata signing a ca req now works
Spindel Jul 30, 2025
f0d70ee
testdata can now be created for expired certs with new library
Spindel Jul 30, 2025
bc5714f
Clean out the testdata generation a bit
Spindel Jul 30, 2025
cb59ea1
Fix some bugs in testdata that made it generate stupid data
Spindel Jul 30, 2025
9ccfbaa
Now using more of the new objects
Spindel Jul 30, 2025
e7dc5ca
fixtures now passes the lints.
Spindel Jul 30, 2025
7ff75cf
Migrate the generate_ca code to use new cryptography module
Spindel Jul 30, 2025
2f97f58
Finish the porting of caramel to new cryptography
Spindel Jul 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ workflow:
- if: $CI_EXTERNAL_PULL_REQUEST_IID
- if: $CI_COMMIT_TAG
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $CI_PIPELINE_SOURCE == "web"

stages:
- test
Expand All @@ -28,14 +29,22 @@ caramel:test:
image: ${PYTHON_IMAGE}
before_script:
- pip3 install .
script:
- python3 -m unittest discover

caramel:test:deprecation:
extends: caramel:test
allow_failure: true
script:
- python3 -W error::DeprecationWarning -m unittest discover

caramel:systest:
stage: test
image: ${BUILD_IMAGE}
before_script:
- dnf -y install openssl
- pip3 install .
- test -e /etc/machine-id || echo f26871a049f84136bb011f4744cde2dd > /etc/machine-id
script:
- make systest

Expand Down
4 changes: 2 additions & 2 deletions caramel/config.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#! /usr/bin/env python
# vim: expandtab shiftwidth=4 softtabstop=4 tabstop=17 filetype=python :
"""caramel.config is a helper library that standardizes and collects the logic
in one place used by the caramel CLI tools/scripts"""
in one place used by the caramel CLI tools/scripts"""

import argparse
import logging
Expand Down Expand Up @@ -221,7 +221,7 @@ def get_log_level(argument_level, logger=None, env=None):
logger = logging.getLogger()
current_level = logger.level

argument_verbosity = logging.ERROR - argument_level * 10 # level steps are 10
argument_verbosity = logging.ERROR - argument_level * 10 # level steps are 10
verbosity = min(argument_verbosity, env_level, current_level)
log_level = (
verbosity if logging.DEBUG <= verbosity <= logging.ERROR else logging.ERROR
Expand Down
Loading