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

Switch from ADAL to AzIdentity, Add Azure Storage Token Refresh, and Update Golang Version #1977

Merged
merged 19 commits into from
Sep 9, 2024

Conversation

SilverdewBaker
Copy link
Contributor

@SilverdewBaker SilverdewBaker commented Jul 30, 2024

What is the problem I am trying to address?

  • Adal repo is deprecated so switch to use azidentity.
  • Support azure storage token refresh automatically.
  • The default value of athens storage account key and azure managed identity resource id should be empty.
  • Update golang version

How is the fix applied?

  • Adal repo is deprecated, https://github.com/Azure/go-autorest/tree/main/autorest/adal, follow the guide to use azidentity.
  • Support azure storage token refresh automatically before it expires.
  • Set the default value of athens storage account key and azure managed identity resource id to empty.
  • Test in private cluster and storage account, the test pass.

What GitHub issue(s) does this PR fix or close?

@SilverdewBaker SilverdewBaker requested a review from a team as a code owner July 30, 2024 12:29
@Ullaakut
Copy link
Collaborator

Ullaakut commented Aug 2, 2024

Hi @SilverdewBaker , please follow the PR template and actually fill the body of your pull request.

Also, your code currently still includes debug logs, so I don't think it's in a reviewable state yet. Please clean it up and ask for reviews once it's ready! Thank you :)

@SilverdewBaker
Copy link
Contributor Author

Thank you @Ullaakut , yes I am still testing my changes, I will fill the body of my pr after I finish the test.

@SilverdewBaker SilverdewBaker changed the title Update newBlobStoreClient Adal repo is deprecated so switch to use azidentity Aug 6, 2024
@SilverdewBaker
Copy link
Contributor Author

need a token refresh check, please don't merge

pkg/stash/with_azureblob.go Outdated Show resolved Hide resolved
@SilverdewBaker SilverdewBaker changed the title Adal repo is deprecated so switch to use azidentity Switch from ADAL to AzIdentity, Add Azure Storage Token Refresh, and Update Golang Version Aug 16, 2024
@SilverdewBaker
Copy link
Contributor Author

SilverdewBaker commented Aug 28, 2024

Hi @Ullaakut, @matt0x6F, we are ready for review, we test in our services for several days, and it runs well.

Copy link
Contributor

@matt0x6F matt0x6F left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good.

@SilverdewBaker
Copy link
Contributor Author

Hi @Ullaakut, @matt0x6F could you please merge this pr?

@SilverdewBaker
Copy link
Contributor Author

Hi @Ullaakut, @matt0x6F could you please merge this pr? kind ping

@matt0x6F matt0x6F enabled auto-merge (squash) September 9, 2024 03:02
@matt0x6F matt0x6F merged commit 34002b8 into gomods:main Sep 9, 2024
11 checks passed
DrPsychick referenced this pull request in gomods/athens-charts Sep 14, 2024
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [gomods/athens](https://redirect.github.com/gomods/athens) | minor |
`v0.14.1` -> `v0.15.1` |

---

### Release Notes

<details>
<summary>gomods/athens (gomods/athens)</summary>

###
[`v0.15.1`](https://redirect.github.com/gomods/athens/releases/tag/v0.15.1)

[Compare
Source](https://redirect.github.com/gomods/athens/compare/v0.15.0...v0.15.1)

#### What's Changed

- update-github-action(deps): bump goreleaser/goreleaser-action from 5
to 6 by [@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/gomods/athens/pull/1969](https://redirect.github.com/gomods/athens/pull/1969)
- update-github-action(deps): bump docker/build-push-action from 5 to 6
by [@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/gomods/athens/pull/1971](https://redirect.github.com/gomods/athens/pull/1971)
- Add aad auth option when using azure storage account by
[@&#8203;SilverdewBaker](https://redirect.github.com/SilverdewBaker) in
[https://github.com/gomods/athens/pull/1973](https://redirect.github.com/gomods/athens/pull/1973)
- Fix helm install command in docs by
[@&#8203;sb464f](https://redirect.github.com/sb464f) in
[https://github.com/gomods/athens/pull/1981](https://redirect.github.com/gomods/athens/pull/1981)
- Switch from ADAL to AzIdentity, Add Azure Storage Token Refresh, and
Update Golang Version by
[@&#8203;SilverdewBaker](https://redirect.github.com/SilverdewBaker) in
[https://github.com/gomods/athens/pull/1977](https://redirect.github.com/gomods/athens/pull/1977)
- Compatibility with proxy.golang.org for list not found responses by
[@&#8203;sanyatuning](https://redirect.github.com/sanyatuning) in
[https://github.com/gomods/athens/pull/1974](https://redirect.github.com/gomods/athens/pull/1974)
- Fix: Change goreleaser flag from --rm-dist to --clean by
[@&#8203;matt0x6F](https://redirect.github.com/matt0x6F) in
[https://github.com/gomods/athens/pull/1984](https://redirect.github.com/gomods/athens/pull/1984)

#### New Contributors

- [@&#8203;SilverdewBaker](https://redirect.github.com/SilverdewBaker)
made their first contribution in
[https://github.com/gomods/athens/pull/1973](https://redirect.github.com/gomods/athens/pull/1973)
- [@&#8203;sb464f](https://redirect.github.com/sb464f) made their first
contribution in
[https://github.com/gomods/athens/pull/1981](https://redirect.github.com/gomods/athens/pull/1981)
- [@&#8203;sanyatuning](https://redirect.github.com/sanyatuning) made
their first contribution in
[https://github.com/gomods/athens/pull/1974](https://redirect.github.com/gomods/athens/pull/1974)

**Full Changelog**:
gomods/athens@v0.14.1...v0.15.1

###
[`v0.15.0`](https://redirect.github.com/gomods/athens/releases/tag/v0.15.0)

[Compare
Source](https://redirect.github.com/gomods/athens/compare/v0.14.1...v0.15.0)

#### What's Changed

- update-github-action(deps): bump goreleaser/goreleaser-action from 5
to 6 by [@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/gomods/athens/pull/1969](https://redirect.github.com/gomods/athens/pull/1969)
- update-github-action(deps): bump docker/build-push-action from 5 to 6
by [@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/gomods/athens/pull/1971](https://redirect.github.com/gomods/athens/pull/1971)
- Add aad auth option when using azure storage account by
[@&#8203;SilverdewBaker](https://redirect.github.com/SilverdewBaker) in
[https://github.com/gomods/athens/pull/1973](https://redirect.github.com/gomods/athens/pull/1973)
- Fix helm install command in docs by
[@&#8203;sb464f](https://redirect.github.com/sb464f) in
[https://github.com/gomods/athens/pull/1981](https://redirect.github.com/gomods/athens/pull/1981)
- Switch from ADAL to AzIdentity, Add Azure Storage Token Refresh, and
Update Golang Version by
[@&#8203;SilverdewBaker](https://redirect.github.com/SilverdewBaker) in
[https://github.com/gomods/athens/pull/1977](https://redirect.github.com/gomods/athens/pull/1977)
- Compatibility with proxy.golang.org for list not found responses by
[@&#8203;sanyatuning](https://redirect.github.com/sanyatuning) in
[https://github.com/gomods/athens/pull/1974](https://redirect.github.com/gomods/athens/pull/1974)

#### New Contributors

- [@&#8203;SilverdewBaker](https://redirect.github.com/SilverdewBaker)
made their first contribution in
[https://github.com/gomods/athens/pull/1973](https://redirect.github.com/gomods/athens/pull/1973)
- [@&#8203;sb464f](https://redirect.github.com/sb464f) made their first
contribution in
[https://github.com/gomods/athens/pull/1981](https://redirect.github.com/gomods/athens/pull/1981)
- [@&#8203;sanyatuning](https://redirect.github.com/sanyatuning) made
their first contribution in
[https://github.com/gomods/athens/pull/1974](https://redirect.github.com/gomods/athens/pull/1974)

**Full Changelog**:
gomods/athens@v0.14.1...v0.15.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/gomods/athens-charts).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC41OS4yIiwidXBkYXRlZEluVmVyIjoiMzguNTkuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: DrPsychick <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants