LoginSignup
0
0

More than 1 year has passed since last update.

OIDCトークンを使用する

Last updated at Posted at 2023-02-27
1 / 7

背景

CircleCIを使用している・していたプロジェクトで、シークレットのローテーションの対応が呼びかけられた。


CI/CDには、Github Actionsを使用していたが、IAMユーザーを払い出してSecretKeySecretKeyIDをGithubに保存して使用していればいつかは同じインシデントに遭遇するかもしれない。。。


対策

CircleCIのブログの「セキュリティのベストプラクティス」でも挙げられている内のひとつにOIDCトークンを使用する方法がある。


以下抜粋
スクリーンショット 2023-02-27 12.32.44.png


やること

  1. CicleCIでのOIDCを使用する方法は下記
    https://circleci.com/docs/ja/openid-connect-tokens/

  2. Github ActionsであればRoleARNを用いる方法があり、下記を参考
    https://dev.classmethod.jp/articles/github-actions-aws-sts-credentials-iamrole/


参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0