Data.gov.uk Contracts Archive
Contracts archive finder application
Visit the contracts archive finder
Credentials for the AWS account are in the
govuk-secrets repository under
Once logged in to the AWS console, you’ll be able to list the EC2 instances and find the IP of the contracts archive finder. Currently the assigned elastic IP is 126.96.36.199.
If you need to
ssh on to the machine, you can do so by grabbing the private
You will need to put the private key into a file and change the permissions so it is not publically viewable before you can use it.
You can do this as follows:
$ cd ~/govuk/govuk-secrets $ PASSWORD_STORE_DIR=~/govuk/govuk-secrets/pass/2ndline pass datagovuk/contracts-finder-archive-cert > govuk-contracts-archive.pem $ chmod 400 govuk-contracts-archive.pem
You will then be able to
ssh onto the machine in aws by using the
ssh -i "govuk-contracts-archive.pem" email@example.com
Remember this is an elastic IP and might change - log into the AWS web console to find the current IP address assigned.
A database of the contracts archive is also accessible in a sqlite database on data.gov.uk
Contract takedown requests
To take down a contract,
ssh onto the
contracts archive machine and then move the relevant contract attachements to
the redacted folder.
Contracts are located on the machine at
~/src/contracts-archive/instance/documents. Find the directory for the contract you are trying to redact.
It will be
For example if the contract id is
12345 then you will find all the files under
Create a new directory in
~/src/contracts-archive/instance/redacted. Name the
directory the same as the contract id.
Move all the attachments from the
documents/<contract_id> into the
Note that this method will remove the downloadable attachments, but leave the contract page available to view on the website. This is fine. You can confirm that you’ve redacted the documents by navigating to the contract in the contracts archive finder application and clicking on the download links for each attachment. It should return a 404 Not Found.
You should also remove it from Google cache (this will only work once we’ve reinstated the contracts archive url and validated with google) using this page:
Click “Temporarily Hide” and provide the URL and then Submit.