Skip to content

Allow GitHub App PEM data to be passed directly #803

Closed

Description

@gusnuf

The new GitHub app authentication feature launched in 0.4.10 is fantastic (thanks @alloveras), but it forces the application's PEM data to be available to Terraform as a file, the path of which must be passed via the GITHUB_APP_PEM_FILE environment variable. This makes it unusable where the execution environment is not under the user's control, notably Terraform Cloud and Terraform Enterprise.

GITHUB_APP_PEM_FILE is already marked as containing sensitive data, so the simplest option is to allow PEM data to be passed in via this same variable. PEM data is easily detectable as it has ----- as a standard preamble. If this preamble is seen, just use the data directly and don't bother trying to open the file and read its contents.

Activity

  1. added
    Type: Feature
    on May 26, 2021
  2. jspiro commented on May 27, 2021

    @jspiro
    Contributor

    See #804!

  3. gusnuf commented on Jun 14, 2021

    @gusnuf
    Author

    Fixed by #804

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ProviderType: Feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions