Unable to save existing secret without re-entering plaintext #4327

Closed
opened 2025-12-29 18:34:47 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Dec 3, 2020).

Originally assigned to: @jeremystretch on GitHub.

Environment

  • Python version: 3.6.9
  • NetBox version: 2.9.10

Steps to Reproduce

  1. Create a secret
  2. Edit the secret and change its role or name without specifying a new plaintext value
  3. Save the secret

Expected Behavior

The secret should be saved with its new attributes.

Observed Behavior

An exception is raised: Must unlock or set plaintext before locking.

Originally created by @jeremystretch on GitHub (Dec 3, 2020). Originally assigned to: @jeremystretch on GitHub. ### Environment * Python version: 3.6.9 * NetBox version: 2.9.10 ### Steps to Reproduce 1. Create a secret 2. Edit the secret and change its role or name without specifying a new plaintext value 3. Save the secret ### Expected Behavior The secret should be saved with its new attributes. ### Observed Behavior An exception is raised: `Must unlock or set plaintext before locking.`
adam added the type: bugstatus: accepted labels 2025-12-29 18:34:47 +01:00
adam closed this issue 2025-12-29 18:34:48 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4327