Increase max size of authorization_header in DB (#2720)

# What this PR does
Increase size of authorization_header for webhooks to accommodate more
data.

## Which issue(s) this PR fixes

## Checklist

- [ ] Unit, integration, and e2e (if applicable) tests updated
- [ ] Documentation added (or `pr:no public docs` PR label added if not
required)
- [ ] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not
required)
This commit is contained in:
Michael Derynck 2023-08-02 08:32:10 -06:00 committed by GitHub
parent cb73ddcf50
commit 45e70ddd88
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 1 deletions

View file

@ -0,0 +1,19 @@
# Generated by Django 3.2.20 on 2023-08-01 19:29
from django.db import migrations
import mirage.fields
class Migration(migrations.Migration):
dependencies = [
('webhooks', '0008_auto_20230712_1613'),
]
operations = [
migrations.AlterField(
model_name='webhook',
name='authorization_header',
field=mirage.fields.EncryptedCharField(default=None, max_length=2000, null=True),
),
]

View file

@ -112,7 +112,7 @@ class Webhook(models.Model):
name = models.CharField(max_length=100, null=True, default=None)
username = models.CharField(max_length=100, null=True, default=None)
password = mirage_fields.EncryptedCharField(max_length=1000, null=True, default=None)
authorization_header = mirage_fields.EncryptedCharField(max_length=1000, null=True, default=None)
authorization_header = mirage_fields.EncryptedCharField(max_length=2000, null=True, default=None)
trigger_template = models.TextField(null=True, default=None)
headers = models.TextField(null=True, default=None)
url = models.TextField(null=True, default=None)