Skip to content

Allow unauthenticated usage for public API endpoints #205

Closed

Description

@StephenKing

Hi there,

Terraform Version

Run terraform -v to show the version. If you are not running the latest version of Terraform, please upgrade because your issue may have already been fixed.

Affected Resource(s)

Please list the resources as a list, for example:

  • data.github_ip_ranges
  • data.github_repositories
  • data.github_* actually..

Terraform Configuration Files

provider "github" {
  organization = "" # required setting
  token = "" # required setting
}

data "github_ip_ranges" "this" {}

output "github_ip_ranges_hooks" {
  value = "${data.github_ip_ranges.this.hooks}"
}

Expected Behavior

The API endpoint https://api.github.com/meta can be reached without authentication. It would be easier to use this data source (or the github data sources in general), if the provider wouldn't enforce that a token is given.

I know that rate limiting can kick in a lot earlier then. But for the use case of white-listing the IP addresses that GitHub uses to deliver hooks, our Terraform deployment would be easier and the number of calls sufficiently low.

Actual Behavior

I'm asked to provide a Github token.

Activity

  1. megan07 commented on Jul 22, 2019

    @megan07
    Contributor

    Thanks @StephenKing for opening this issue. It's been closed with #255 and will be released shortly.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions