-
-
Notifications
You must be signed in to change notification settings - Fork 298
[feature] Introduced standalone certificate templates and device bindings #1378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
stktyagi
wants to merge
42
commits into
gsoc26-x509-certificate-generator-templates
Choose a base branch
from
issues/1356-extend-abstract-template
base: gsoc26-x509-certificate-generator-templates
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 3 commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
25f1a21
[feature] Extended Template model for standalone X.509 certificates #…
stktyagi a795e09
[fix] Updated and added tests Fixes #1356
stktyagi b946d26
[fix] Fixed auto_cert help text
stktyagi ff1e8a1
Merge branch 'gsoc26-x509-certificate-generator-templates' into issue…
stktyagi 0053bcf
[fix] Validate cert relations only inside the cert branch #1356
stktyagi 01221d9
[fix] Added test for cert validation path #1356
stktyagi 5c551c7
[fix] Fixed flake error #1356
stktyagi d6fd193
[feature] Add DeviceCertificate M2M model and cert template support #…
stktyagi cae38a5
[fix] Updated test for double checks #1377
stktyagi 02912a0
[feature] Updated django admin and API #1357 #1361
stktyagi 3434719
[fix] Fixed tests and improvedd serializers #1357
stktyagi 298572f
[feature] Implemented certificate lifecycle management #1358
stktyagi 5c522e9
Merge branch 'gsoc26-x509-certificate-generator-templates' into issue…
stktyagi 052cebf
[tests] Added tests for cert template type #1358
stktyagi 148bfd2
[tests] Added tests for API #1361
stktyagi badf1c1
[fix] Addressed model improvements #1377
stktyagi a692c77
[fix] Fixed certificate template reordering lifecycle #1358
stktyagi 16703f1
[fix] Minor improvements
stktyagi 212b839
[fix] Made cert creation transactional
stktyagi 37ff9a9
[fix] Fixed NULL handling in get_unassigned_certs()
stktyagi ef90a6c
[fix] Filtered revoked certs from blueprint list
stktyagi b8bc3e0
Merge branch 'gsoc26-x509-certificate-generator-templates' into issue…
stktyagi 88af90a
Merge branch 'gsoc26-x509-certificate-generator-templates' into issue…
stktyagi bca3809
[fix] Prevent zombie certs
stktyagi 99cd151
[tests] Cover the partial replacement path too
stktyagi 7390020
Merge branch 'gsoc26-x509-certificate-generator-templates' into issue…
stktyagi ee79c93
[chores] Added custom oid extensions for mac and uuid #1377
stktyagi c92cc5e
Merge branch 'gsoc26-x509-certificate-generator-templates' into issue…
stktyagi dfa650c
[docs] Added inital documentation
stktyagi 88003e2
[feature] Added implementation for context injection #1360
stktyagi b9db466
[tests] Updated tests to pass CI
stktyagi 28f9cce
[fix] Addressed review changes
stktyagi 228e9bc
Merge branch 'gsoc26-x509-certificate-generator-templates' into issue…
stktyagi 1e9e813
[docs] Added docs for context injection #1360
stktyagi 717c3e1
[feature] Implemented certificate regeneration #1359
stktyagi 7f8dba9
[fix] Improved certificate regeneration
stktyagi e7a6b16
[fix] Synchronize config status on standalone cert renewal
stktyagi 406e780
[docs] Addressed review comments
stktyagi 25ab4c3
[fix] Made hardware drift cert regeneration idempotent
stktyagi 4711fa3
Merge branch 'gsoc26-x509-certificate-generator-templates' into issue…
stktyagi a819721
[chores] Updated DeviceCertificate model and tests
stktyagi 8c32282
[chores] Minor improvements
stktyagi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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
75 changes: 75 additions & 0 deletions
75
openwisp_controller/config/migrations/0064_template_blueprint_cert_template_ca_and_more.py
This file contains hidden or 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,75 @@ | ||
| # Generated by Django 5.2.14 on 2026-05-26 20:33 | ||
|
|
||
| import django.db.models.deletion | ||
| from django.conf import settings | ||
| from django.db import migrations, models | ||
|
|
||
| import openwisp_controller.config.base.template | ||
|
|
||
|
|
||
| class Migration(migrations.Migration): | ||
|
|
||
| dependencies = [ | ||
| ("config", "0063_replace_jsonfield_with_django_builtin"), | ||
| migrations.swappable_dependency(settings.DJANGO_X509_CA_MODEL), | ||
| migrations.swappable_dependency(settings.DJANGO_X509_CERT_MODEL), | ||
| ] | ||
|
|
||
| operations = [ | ||
| migrations.AddField( | ||
| model_name="template", | ||
| name="blueprint_cert", | ||
| field=models.ForeignKey( | ||
| blank=True, | ||
| help_text="Optional: Select an unassigned certificate " | ||
| "to copy extensions and properties from.", | ||
| null=True, | ||
| on_delete=django.db.models.deletion.SET_NULL, | ||
| to=settings.DJANGO_X509_CERT_MODEL, | ||
| verbose_name="Blueprint Certificate", | ||
| ), | ||
| ), | ||
| migrations.AddField( | ||
| model_name="template", | ||
| name="ca", | ||
| field=models.ForeignKey( | ||
| blank=True, | ||
| help_text="The Certificate Authority that will sign " | ||
| "certificates generated by this template.", | ||
| null=True, | ||
| on_delete=django.db.models.deletion.CASCADE, | ||
| to=settings.DJANGO_X509_CA_MODEL, | ||
| verbose_name="Certificate Authority", | ||
| ), | ||
| ), | ||
| migrations.AlterField( | ||
| model_name="template", | ||
| name="auto_cert", | ||
| field=models.BooleanField( | ||
| db_index=True, | ||
| default=openwisp_controller.config.base.template.default_auto_cert, | ||
| help_text="whether tunnel specific configuration " | ||
| "(cryptographic keys, ip addresses, etc) should be " | ||
| "automatically generated and managed behind the scenes for " | ||
| "each configuration using this template, valid only for the " | ||
| "VPN and certificate template types", | ||
| verbose_name="automatic tunnel provisioning", | ||
| ), | ||
| ), | ||
| migrations.AlterField( | ||
| model_name="template", | ||
| name="type", | ||
| field=models.CharField( | ||
| choices=[ | ||
| ("generic", "Generic"), | ||
| ("vpn", "VPN-client"), | ||
| ("cert", "Certificate"), | ||
| ], | ||
| db_index=True, | ||
| default="generic", | ||
| help_text="template type, determines which features are available", | ||
| max_length=16, | ||
| verbose_name="type", | ||
| ), | ||
| ), | ||
| ] |
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.