Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OIDC trust GitHub action blog #11870

Merged
merged 5 commits into from
May 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions content/blog/esc-editor-enhancements/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ authors:
tags:
- esc
- secrets
- features
---

With [Pulumi ESC](/product/esc), our goal is to not only create a tool that simplifies the development process but also one that developers love. In pursuit of this goal, we're excited to announce enhancements to the Pulumi ESC environment editor. These enhancements are focused on addressing common challenges encountered when authoring environments: syntax errors, type errors, frequent context switches to and from documentation, and more. Our aim is to make the process of authoring environments as straightforward as possible by removing common hurdles.
Expand Down
1 change: 1 addition & 0 deletions content/blog/esc-key-value-table-editor-launch/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ tags:
- esc
- secrets
- config management
- features
---


Expand Down
80 changes: 80 additions & 0 deletions content/blog/oidc-trust-github-action/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
---
title: "Simplify OIDC Trust with the New Pulumi GitHub Action"

date: 2024-05-20T21:45:13Z

meta_desc: Introducing Pulumi GitHub Action for OIDC Trust Relationships

# The meta_image appears in social-media previews and on the blog home page. A
# placeholder image representing the recommended format, dimensions and aspect
# ratio has been provided for you.
meta_image: meta.png

# At least one author is required. The values in this list correspond with the
# `id` properties of the team member files at /data/team/team. Create a file for
# yourself if you don't already have one.
authors:
- german-lena
- arun-loganathan


# At least one tag is required. Lowercase, hyphen-delimited is recommended.
tags:
- oidc
- openid-connect
- features

# See the blogging docs at https://github.com/pulumi/pulumi-hugo/blob/master/BLOGGING.md
# for details, and please remove these comments before submitting for review.
---

We're excited to announce a new GitHub Action that simplifies the integration of Pulumi's powerful [OpenID Connect](/docs/pulumi-cloud/oidc/client/) (OIDC) Trust feature into your [GitHub Actions](/docs/pulumi-cloud/oidc/client/github/) workflows. This action streamlines secure authentication with Pulumi Cloud, allowing you to leverage GitHub as an identity provider and eliminate the need for long-lived Pulumi access tokens.

<!--more-->

## A Quick Refresher on Pulumi's OIDC Trust

The OIDC Trust feature allows you to configure trusted OIDC identity providers, such as GitHub, GitLab, or Google Cloud, within your Pulumi organization. This feature ensures secure and straightforward integration of [Pulumi Cloud](/docs/pulumi-cloud/) within any OIDC-compliant system. Once set up, you can securely exchange short-lived OIDC tokens from these providers for temporary Pulumi access tokens. These tokens can then be used to authenticate to Pulumi and perform actions such as deploying your infrastructure using Pulumi IaC, retrieving secrets stored in Pulumi ESC, etc. This approach enhances security by eliminating the need to store long-lived sensitive credentials and aligns with best cloud practices.

## Streamlining OIDC Trust with GitHub Actions

Our new GitHub Action makes using OIDC Trust even easier. It automates the secure retrieval of Pulumi access tokens directly within your [GitHub workflows](/docs/using-pulumi/continuous-delivery/github-actions/), streamlining the authentication process and eliminating manual steps. This automation reduces errors, enhances security by reducing potential token leakage, and improves the maintainability of your workflows, making them cleaner, more readable, and easier to update.

## Example Usage

This example demonstrates how to use the Action to authenticate with OIDC and run the `pulumi preview` command.

```yaml
name: Pulumi preview
on:
workflow_dispatch:

permissions:
id-token: write
contents: read

jobs:
run_cron_job:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: pulumi/auth-actions@v1
with:
organization: org-name
requested-token-type: urn:pulumi:token-type:access_token:organization

- uses: pulumi/actions@v5
with:
command: preview
stack-name: org-name/stack-name
```

For more information about the `pulumi/auth-actions@v1` Action, check the [Pulumi Auth Action documentation](https://github.com/marketplace/actions/pulumi-auth-action).

## Conclusion

The new GitHub Action for Pulumi OIDC Trust makes it easier than ever to incorporate secure, short-lived credential management into your GitHub Actions workflows. Embrace the power of OIDC, eliminate the "secret zero" problem, and streamline your Pulumi deployments with ease.

Give the action a try in your next GitHub Actions workflow and let us know what you think! Check out our [documentation](/docs/pulumi-cloud/oidc/client/github/) for more details.
Binary file added content/blog/oidc-trust-github-action/meta.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion content/blog/oidc-trust-relationships/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ authors:
tags:
- oidc
- openid-connect
- feature
- features

# See the blogging docs at https://github.com/pulumi/docs/blob/master/BLOGGING.md
# for details, and please remove these comments before submitting for review.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ tags:
- esc
- secrets
- 1password
- features

---

Expand Down
Loading