API to manage contexts

I'd like to implement an integration with Terraform so Amazon access keys can automatically be maintained and updated in build contexts, see this issue: https://github.com/hashicorp/terraform/issues/17951

  • Guest
  • Aug 9 2018
  • Candidate
  • Attach files
  • Aaron Stillwell commented
    03 Mar 14:59

    Context management is now available in the CLI. https://github.com/CircleCI-Public/circleci-cli/pull/362

  • Stephen D commented
    19 Feb 16:49

    Cross-linking to a generalized "official CircleCI Terraform provider" issue. That would be one consumer of the API proposed here.



  • Roman Smolgovsky commented
    04 Feb 20:43


  • Kevin Ly commented
    20 Jan 15:00

    +1 this would ease automation of secret creation in our org and really enhance security.  

  • Vitalii Sikora commented
    December 19, 2019 15:35

    At Shelf we are using single context per project (repo) and since we are doing serverless it requires every time to the context manually from different sources which just takes time for a dummy work. Definitely needed!

  • Ryan Shillington commented
    November 25, 2019 22:16

    The new contexts variables that are only available to administrators are wonderful.  Unfortunately, we have an automated system that rotates our deployment API keys daily.

    Without an API to manage contexts, we can't update the API keys, which means we'd have to have stagnant ones that we update manually.  This is a security issue!

  • Ryan Shillington commented
    November 25, 2019 22:09


  • William Hatch commented
    November 15, 2019 01:50

    We definitely need a fully featured API for managing Context's, and that should include the ability to CRUD/clone and modify existing properties and their values within a Context.

  • Nikita Kamaev commented
    November 10, 2019 13:20


  • Lasse Gaardsholt commented
    October 30, 2019 09:36

    Can we please get this

  • Jeff Bornemann commented
    October 22, 2019 21:58


  • reese wilson commented
    October 21, 2019 15:56

    how is this not a thing?

  • G L commented
    October 21, 2019 15:55


  • Victor Z commented
    October 15, 2019 03:33

    we'd like it as well

  • Marcelo Labardini commented
    September 25, 2019 13:49

    Please ... this is a must have!

  • Michael Bianchi commented
    September 19, 2019 21:19

    An absolute requirement for rotating secrets

  • Miguel Marquez commented
    September 04, 2019 13:51

    + 1 I need to store secret keys per context via API. Actually there's no way to do this

  • Matthieu Adjogah commented
    July 29, 2019 08:39

    +1 This is absolutely required. We use dozen of variables for our microservices ECS cluster. We need to backup these values while scripting their deployment at the same time as we use to do in IaC.

    Contexts are a wonderful thing, but not really useful or convenient to use without:

    1. this API

    2. the capability to see the content of some variables as they are not supposed to be secrets. It's mandatory to ease the readability during investigations.

  • Santiago Moneta commented
    July 26, 2019 19:30


  • Vinny Thanh commented
    June 27, 2019 20:41

    We use tokens inside our contexts to access external services. Would love to automate the secrets rotation within contexts as we have 100s of projects.

  • Load older comments