GithubHelp home page GithubHelp logo

pepperize / cdk-github Goto Github PK

View Code? Open in Web Editor NEW
12.0 12.0 2.0 4.94 MB

Manage GitHub resources like repositories, teams, members, integrations and workflows with the AWS CDK as Custom Resources in CloudFormation.

License: MIT License

TypeScript 100.00%
aws cdk construct custom-resources github octokit repositories

cdk-github's People

Contributors

dependabot[bot] avatar mergify[bot] avatar pflorek avatar wtfjoke avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

wtfjoke pflorek

cdk-github's Issues

Octokit requests vs. plugin rest endpoint methods

Document the decision for rest over requests

There are two ways of using the GitHub REST API, the octokit.rest.* endpoint methods and octokit.request. Both act the same way, the octokit.rest.* methods are just added for convenience, they use octokit.request internally.

https://github.com/octokit/octokit.js#rest-api

With https://github.com/octokit/plugin-rest-endpoint-methods.js/ one can send all the request parameters as a single object, no matter if it's a route, query or body parameter

GithubCustomResource vs. Github CFN Registry vs. TF Github CFN Registry

There are already Custom Resources in the public CloudFormation Registry cloudformation-github-resource-providers and cdk-cloudformation.

My understanding is they are complementary to our library. They are really good for regular use cases and can be used complementary with this custom construct.

This more flexible custom construct fills then the gap what is not implemented and also the ability to use a Github app or unauthenticated instead a PAT.

We may skip on higher constructs and refer to such libraries. Additional we can give some quickstart hint and an example for interop.

thx Konstantin

Support setting GitHub Actions Secrets as request parameters on GithubApiCall

To merge with https://github.com/WtfJoke/cdk-github we need to support the feature to https://docs.github.com/en/rest/actions/secrets#create-or-update-a-repository-secret

See:

https://github.com/WtfJoke/cdk-github/blob/a30cc750581010e769c390b320158c92e705ada2/src/handler/secrets/github-secret-encryptor.ts#L1-L23

A possible solution could be wrapping the SecretsManager Secrets or the SSM ParameterStore StringParameter by a class and using a symbol/identifier that can be used on JSON.parse in the lambda handler like PhysicalResourceIdReference

Configure auth strategies from SecretsManager and SSM ParameterStore for each AuthStrategy

The current implementation offers the ability to fully configure the GitHub AuthStrategies either by SecretsManager or SSM ParameterStore for GitHub App (with installationId), a PAT or unauthenticated

https://github.com/octokit/authentication-strategies.js/#authentication-strategiesjs

See also https://github.com/pepperize/cdk-github/blob/main/API.md#static-functions--1

auth strategy description
appAuth GitHub App or installation authentication.
tokenAuth Personal Access Token authentication.
unauthenticated unauthenticated.

Do we have to support additional AuthStrategies. Or by different AWS Service i.e. AuthOptions.tokenAuthFromSecret(secret: ISecret), AuthOptions.tokenAuthFromParameter(parameter: IParameter)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.