GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - manchicken/ghu23-oidc-talk: My OIDC talk for GitHub Universe 2023.

BranchesTags
Open more actions menu

Latest commit

 

History

16 Commits
16 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
cloudformation
cloudformation
 
 
.gitignore
.gitignore
 
 
GitHub Actions to AWS via OIDC.msd
GitHub Actions to AWS via OIDC.msd
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
index.html
index.html
 
 

Repository files navigation

GitHub Universe 2023 OIDC Demo

This repository houses all of the code and other assets used in the demo portion of my GitHub Universe 2023 talk.

If you'd like, I'd love to have you join the discussion here: https://github.com/orgs/community/discussions/74474

Security

WARNING: If you misconfigure an OIDC provider in your AWS account, it is likely that you will allow an attacker into your AWS account. I cannot stress enough how important it is for you to properly understand and configure any authentication utilities that grant access to your AWS environment.

You can mitigate much of the security risk here with these techniques:

  1. In the AssumeRolePolicyDocument, use the sub assertion to limit only to repositories or repository owners that you trust. GitHub has a lot of advice on how to further harden the AssumeRolePolicyDocument here in their documentation.
  2. In the IAM policies you allow to be assumed from this role, observe least privilege to an extreme that you might normally consider unreasonable.
    1. Use resource wildcards judiciously, and never use Resource: *
    2. When possible, use NotResource and Condition statements.
    3. Explicitly list all permissions, avoiding wildcards for permissions entirely.
  3. Avoid using this for CDK or Terraform, as those tools can require a lot of permissions to run. If you want to use GitHub to deploy infrastructure, consider using a CodePipeline which pulls from GitHub, and then deploy using a combination of CodePipeline and CodeBuild.

For additional reading on how to use this securely, check out this wonderful article by Christophe Tafani-Dereeper.

The OIDC template

I recommend using AWS CloudFormation for deploying the OIDC template. Check out the example I made here: cloudformation/oidc-template.yml

License

This repository, and its contents, are licensed under the MIT license.

Author

Mike Stemle [email protected]

About

My OIDC talk for GitHub Universe 2023.

Topics

awscloudformationgithub-universe

Resources

Readme
MIT license
Activity

Stars

21 stars

Watchers

1 watching

Forks

7 forks
Report repository

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.