Onemind-Services-LLC / netbox-secrets

Enhance your secret management with encrypted storage and flexible, user-friendly features.
Apache License 2.0
105 stars 11 forks source link

[Bug]: Code key length mistake 4097 instead of 4096 #92

Closed milonline-eu closed 1 year ago

milonline-eu commented 1 year ago

NetBox Secrets plugin version

v1.8.5

NetBox version

v3.5.1

Steps to Reproduce

A mistake in key length: 4097 instead of 4096.

''' if key_size not in range(2048, 4097, 256): ''' https://github.com/Onemind-Services-LLC/netbox-secrets/blob/0b413174eae92dc47fcc56a5e135b0a24d50abe7/netbox_secrets/api/views.py#L279C40-L279C44

Expected Behavior

Possible key length 256, 2048, 4096

Observed Behavior

Possible key length 256, 2048, 4097