-
Notifications
You must be signed in to change notification settings - Fork 493
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NAS-129859 / 25.04 / Allow adding certificates to system's trusted st…
…ore (by sonicaj) (#14430) * Add db migration to add trusted store column for certs (cherry picked from commit b988d5d) * Account for trusted store key in cert service (cherry picked from commit 7674f9f) * Update generate ssl certs so that we add certs to trusted store (cherry picked from commit f1820b2) * Add merge migration * Add ca/cert prefix when writing to trusted ca's path dir --------- Co-authored-by: Waqar Ahmed <[email protected]>
- Loading branch information
Showing
6 changed files
with
62 additions
and
10 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
.../middlewared/alembic/versions/24.10/2024-09-04_19-40_add_to_trust_store_field_for_cert.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
""" | ||
Add add_to_trust_store field for certifacates | ||
Revision ID: c31881e67797 | ||
Revises: 98c1ebde0079 | ||
Create Date: 2024-09-04 19:40:16.801832+00:00 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
revision = 'c31881e67797' | ||
down_revision = '98c1ebde0079' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
with op.batch_alter_table('system_certificate', schema=None) as batch_op: | ||
batch_op.add_column(sa.Column('cert_add_to_trusted_store', sa.Boolean(), nullable=False, server_default='0')) | ||
|
||
|
||
def downgrade(): | ||
pass |
19 changes: 19 additions & 0 deletions
19
src/middlewared/middlewared/alembic/versions/25.04/2024-09-05_22-58_merge.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
"""Merge | ||
Revision ID: 7b618b9ca77d | ||
Revises: 9f51d0be7b07, c31881e67797 | ||
Create Date: 2024-09-04 00:35:59.547731+00:00 | ||
""" | ||
|
||
revision = '7b618b9ca77d' | ||
down_revision = ('9f51d0be7b07', 'c31881e67797') | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
pass | ||
|
||
|
||
def downgrade(): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters