Skip to content

Add support for azure arc servers#5211

Open
Kisbogyi wants to merge 4 commits intoacmesh-official:devfrom
Kisbogyi:master
Open

Add support for azure arc servers#5211
Kisbogyi wants to merge 4 commits intoacmesh-official:devfrom
Kisbogyi:master

Conversation

@Kisbogyi
Copy link

@Kisbogyi Kisbogyi commented Jul 18, 2024

This code will enable the azure module to work in Azure arc servers as well, because azure arc servers use a separate url, and method for the challenge/response protocol.
https://learn.microsoft.com/en-us/azure/azure-arc/servers/managed-identity-authentication

@github-actions
Copy link

Welcome
First thing: don't send PR to the master branch, please send to the dev branch instead.
Please make sure you've read our DNS API Dev Guide and DNS-API-Test.
Then reply on this message, otherwise, your code will not be reviewed or merged.
We look forward to reviewing your Pull request shortly ✨
注意: 必须通过了 DNS-API-Test 才会被 review. 无论是修改, 还是新加的 dns api, 都必须确保通过这个测试.

@Kisbogyi
Copy link
Author

orward to reviewing your Pull r

👍

@GBBx
Copy link

GBBx commented Oct 28, 2024

Hi,
Thanks @Kisbogyi , this is a great improvement. I'd love to see it merged.
This change could fix the shellcheck:

      CHALLENGE=$(grep Www "$HTTP_HEADER" | sed 's/Www-Authenticate: Basic realm=//g' | sed 's/[^a-zA-Z0-9\/\.\-]//g')
      _H2="Authorization: Basic $(cat "$CHALLENGE")"

(Also fix a typo.)


Another thing: the tokens are in "/var/opt/azcmagent/tokens/" and not all users have access to it so acme.sh may need to be run by root for this scenario.

@Kisbogyi
Copy link
Author

Hi, Thanks @Kisbogyi , this is a great improvement. I'd love to see it merged. This change could fix the shellcheck:

      CHALLENGE=$(grep Www "$HTTP_HEADER" | sed 's/Www-Authenticate: Basic realm=//g' | sed 's/[^a-zA-Z0-9\/\.\-]//g')
      _H2="Authorization: Basic $(cat "$CHALLENGE")"

(Also fix a typo.)

Another thing: the tokens are in "/var/opt/azcmagent/tokens/" and not all users have access to it so acme.sh may need to be run by root for this scenario.

Hi!
Sorry for the late response it was hectic for me, my bad.
I incorporated your change for the pr, but may need help for the tests :(
Again sorry.

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.

2 participants