Skip to content

[enancement] VpnClient objects should block modifications  #1428

Description

@pandafy

Describe the bug
Currently, VpnClient objects allow direct modification of their fields. This is problematic because it can lead to inconsistent state and data integrity issues. The expected behavior is that VpnClient objects should be immutable after creation, and any configuration changes should require re-creating the object instead of modifying existing fields.

Expected behavior
VpnClient objects should not allow direct field modifications. Instead, users should be required to delete the existing VpnClient object and create a new one (by re-applying template) with the desired configuration. This ensures data consistency and makes the object lifecycle management explicit and predictable.

We shall add model validation to disallow any changes to the VpnClient fields post creation.

System Informatioon:

  • OS: [e.g. Ubuntu 24.04 LTS]
  • Python Version: [e.g. Python 3.11.2]
  • Django Version: [e.g. Django 4.2.5]
  • Browser and Browser Version (if applicable): [e.g. Chromium v126.0.6478.126]

Metadata

Metadata

Labels

buggood first issueEasy issue that new contributors may like to pick up to get themselves familiar with the repository.

Type

Fields

No fields configured for Bug.

Projects

Status
Backlog
Status
To do (general)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions