admin_aco_deny

command
v0.0.0-...-c43bc7e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2026 License: CC0-1.0 Imports: 17 Imported by: 0

README

The ACO Deny administrative task lambda will add an existing ACO to our deny list. It should be called via AWS's lambda interface (see: https://confluence.cms.gov/display/BCDA/How+To+deny+an+ACO+From+Generating+Credentials).

Payload Specification

The Lambda expects a JSON payload with the following fields:

Field Type Required Description Example
deny_aco_ids []string Yes List of ACO CMS IDs to deny. Must not be empty. A1220
cutoff_date string (RFC3339) No Date and time after which the ACO will have no access and requests will be blocked (denylisted). Defaults to current time (time.Now()) if omitted. 2026-12-31T23:59:59Z
termination_date string (RFC3339) No Date and time when the ACO moved from full to limited access. Defaults to cutoff_date if omitted. Cannot be after cutoff_date. If termination_date is in the future, a cutoff_date is required. 2026-12-31T23:59:59Z

Example Payloads

1. Immediate Deny (default behavior)
{
  "deny_aco_ids": ["A9994", "A9995"]
}
2. Scheduled Future Cutoff Date
{
  "deny_aco_ids": ["A9994"],
  "cutoff_date": "2026-12-31T23:59:59Z"
}
3. Custom Termination and Cutoff Dates
{
  "deny_aco_ids": ["A9994"],
  "termination_date": "2026-10-01T00:00:00Z",
  "cutoff_date": "2026-12-31T23:59:59Z"
}

Testing & Deployment

You can run the unit test suite from the base dir (bcda-app) using the following command:

make test-path TEST_PATH="bcda/lambda/admin_aco_deny/*.go"

(You might have to make load-fixtures first). It also has an integration test run via github actions (see .github/workflows/admin-aco-deny-integration-test.yml).

The lambda is deployed (or promoted in the case of prod) using github actions (see .github/workflows/admin-aco-deny-lambda-{env}-deploy.yml files).

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL