Onemind-Services-LLC/netbox-secrets

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

Closed this issue · 0 comments

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, 409**7**