Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate AV policyData in API #762

Merged
merged 21 commits into from
Mar 15, 2024
Merged

Conversation

griffri
Copy link
Contributor

@griffri griffri commented Mar 13, 2024

Resolves #751 and WDC-54

This PR gives DeliveryChannelPolicyValidator the ability to validate AV policyData against a cached list of transcoder policies retrieved from the new /allowed-av endpoint added to Engine in #726.

It also introduces a new change to the API appSettings.json: EngineDirectIngestUri has now been replaced with EngineRoot - EngineClient calls /allowed-av, /image-ingest and /asset-ingest using this as the base URL.

@griffri griffri marked this pull request as ready for review March 14, 2024 14:52
@griffri griffri requested a review from a team as a code owner March 14, 2024 14:52
@griffri griffri marked this pull request as draft March 14, 2024 15:13
@griffri griffri force-pushed the feature/api_validate_av_policydata branch from 23abde6 to 76a78d2 Compare March 14, 2024 16:32
@griffri griffri marked this pull request as ready for review March 14, 2024 16:35
Throw ApiException instead of returning null when JsonSerializer fails

Use ``(string[])null` instead of `string[] nullAvPolicies = null;` in delivery channel tests

Remove unused usings

Cache null object if null is returned from Engine AV policies endpoint

Add GetAllowedAvOptions_RetrievesAllowedAvPolicies test to EngineClientTests

Rewrite EngineClient to only send assets to "/asset-ingest", skip legacy EngineClient tests

Use ConfigureBasicAuthedIntegrationTestHttpClient overload

Use `async Task` instead of `async void`
Turn Hydra delivery channel validation handling into method

Allow Engine AV policy endpoint responses to be cached as `null`

Add test that ensures that GetAllowedAvPolicyOptions() returns null if the Engine AV policy endpoint is unreachable

Remove unused fields from DeliveryChannelPoliciesController

Use (string[])null) for other null tests

Fix incorrectly set up log call
@griffri griffri requested a review from donaldgray March 15, 2024 13:57
@griffri griffri merged commit 4c8b2f7 into develop Mar 15, 2024
9 checks passed
@griffri griffri deleted the feature/api_validate_av_policydata branch March 15, 2024 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

API validates AV policyData using known list from Engine
3 participants