Skip to content

Commit

Permalink
#2770: Add validation for httpBypassFqdn as hostname in Traffic Ops (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
qtweng authored Nov 4, 2021
1 parent 2c67dba commit 44f2f44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).

## [unreleased]
### Added
- [#2770](https://github.com/apache/trafficcontrol/issues/2770) Added validation for httpBypassFqdn as hostname in Traffic Ops
- Added permission based roles for better access control.
- [#5674](https://github.com/apache/trafficcontrol/issues/5674) Added new query parameters `cdn` and `maxRevalDurationDays` to the `GET /api/x/jobs` Traffic Ops API to filter by CDN name and within the start_time window defined by the `maxRevalDurationDays` GLOBAL profile parameter, respectively.
- Added a new Traffic Ops cdn.conf option -- `disable_auto_cert_deletion` -- in order to optionally prevent the automatic deletion of certificates for delivery services that no longer exist whenever a CDN snapshot is taken.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1345,6 +1345,7 @@ func Validate(tx *sql.Tx, ds *tc.DeliveryServiceV4) error {
"dscp": validation.Validate(ds.DSCP, validation.NotNil, validation.Min(0)),
"geoLimit": validation.Validate(ds.GeoLimit, validation.NotNil),
"geoProvider": validation.Validate(ds.GeoProvider, validation.NotNil),
"httpByPassFqdn": validation.Validate(ds.HTTPBypassFQDN, isDNSName),
"logsEnabled": validation.Validate(ds.LogsEnabled, validation.NotNil),
"regionalGeoBlocking": validation.Validate(ds.RegionalGeoBlocking, validation.NotNil),
"remapText": validation.Validate(ds.RemapText, noLineBreaks),
Expand Down

0 comments on commit 44f2f44

Please sign in to comment.