简体   繁体   English

如何使用 oauth 和自签名证书运行 Azurite?

[英]How do you run Azurite with oauth and a self signed certificate?

I'm trying to do some local testing using Azurite, which should enable me to do all the things I want to do against blob containers etc. I want to be able to used a managed identity as well and therefore use DefaultAzureCredential when creating the blob client.我正在尝试使用 Azurite 进行一些本地测试,这应该使我能够对 blob 容器等执行所有我想做的事情。我也希望能够使用托管标识,因此在创建 blob 时使用 DefaultAzureCredential客户。

I found this really useful article that explains all this.我发现这篇非常有用的文章解释了这一切。 However, it assumes you're just kicking off Azurite yourself as you've downloaded it as an npm package. However, if you're using Visual Studio 2022 Azurite is built in and will 'just run' if you've got it setup as a service dependency.但是,它假设您只是自己开始使用 Azurite,因为您已将其下载为 npm package。但是,如果您使用的是 Visual Studio 2022,则 Azurite 是内置的,如果您已安装它,它将“直接运行”作为服务依赖。 I don't know how I can therefore specify I want azurite to run with oauth and run with the cert specified.因此,我不知道如何指定我希望 azurite 使用 oauth 运行并使用指定的证书运行。 In other words I can't see how I can replicate this step in the article:换句话说,我看不出如何在文章中复制此步骤:

azurite --oauth basic --cert 127.0.0.1.pem --key 127.0.0.1-key.pem azurite --oauth basic --cert 127.0.0.1.pem --key 127.0.0.1-key.pem

'azurite' isn't a commandlet that is known as it's not an npm package. The Azurite 'README' also specifies to do this but doesn't say how. “azurite”不是众所周知的命令行开关,因为它不是 npm package。Azurite “自述文件”也指定要执行此操作,但没有说明如何执行此操作。

I ended up using the docker image specified here .我最终使用了此处指定的 docker 图像。 I then had to specify --oauth basic as an additional argument at the end.然后我必须在最后指定 --oauth basic 作为附加参数。 This seems to work.这似乎有效。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 证书链中的自签名证书 - NuGetToolInstaller - Self signed certificate in certificate chain - NuGetToolInstaller Azure DEVOPS 中的 GIT 错误 - SSL 证书问题:证书链中的自签名证书推送 - GIT error in Azure DEVOPS - SSL certificate problem: self signed certificate in certificate chain Pushing VSTS dotnet 恢复公司(或自签名)证书问题 - VSTS dotnet restore corporate (or self-signed) certificate issue 自签名证书在 Azure DevOps Services 管道中安装 Terraform 时出错 - Self Signed Certificate Error installing Terraform in Azure DevOps Services pipeline 在 windows 图像上使用 Azure DevOps 管道运行 Azurite - Run Azurite with Azure DevOps Pipelines on windows image SonarQube构建步骤失败,并在Azure DevOps中显示“证书链中的自签名证书” - SonarQube build step fails with “Self-Signed Certificate in Certificate Chain” in Azure DevOps 如何通过 REST API 为管道运行指定 sourceBranch? - How do you specify the sourceBranch for a Run of Pipelines via the REST API? 您如何使用 azure dev Ops 并行运行 xcuitests? - How do you run xcuitests in parallel using azure dev Ops? 如何使用关联的VS Enterprise订阅在Azure DevOps Services上增加自托管并行作业的数量? - How do you increase # of self-hosted parallel jobs on Azure DevOps Services using an associated VS Enterprise subscription? azure 自托管代理 linux 不使用“--once”参数运行 - azure self hosted agent linux do not run with “--once” parameter
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM