Comments (5)
Thanks for raising this @karolz-ms! I've added it to our backlog.
from cloud-integration-beta.
Thanks for the proposal. Actually we looked at Service provider login for our CI as well.
One issue I see at the moment for providing this to users is that login through this method, I get an access token (valid for 1h) but no refresh token. So unlike the classic login, where the token is refreshed automatically, here the user has a token valid for 1h, and then gets an error message saying he needs to login again.
Maybe I missed something when implementing this, we can investigate a bit more to defined what is the best solution to improve this, or if we are happy to provide this in the CLI knowing the token will expire and not automatically refresh in this case. (cc @nebuk89)
from cloud-integration-beta.
Discussing this a bit further with @nebuk89, we'll include this in the CLI with the limitation that Service Principal login will obtain only an access token and no refresh token, the user will need to manually re-login when the token expires. This should not be an issue for CI use cases.
the CLI will provide: docker login azure --client-id xxx --client-secret yyy --tenant-id zzz
from cloud-integration-beta.
Makes sense, thanks Guillaume! I found this doc, which suggests that client credentials flow can only produce an access token, and not a refresh token https://docs.microsoft.com/en-us/azure/active-directory/develop/security-tokens#how-each-flow-emits-tokens-and-codes
Like you said, this is sufficient for CI scenario
from cloud-integration-beta.
Available since v0.1.12, using docker login azure --client-id xx --client-secret yy --tenant-id zz
from cloud-integration-beta.
Related Issues (20)
- How to authenticate with private ACR registry? HOT 6
- Missing support to environment variables HOT 2
- unsupported Compose file version: 2.3 HOT 2
- Docker Login Azure issues HOT 3
- "docker logs --follow" output garbled HOT 4
- Images can't be listed when using an ACI context
- docker login azure @ WSL2: xdg-open executable file not found in $PATH HOT 1
- Support for Compose v2
- no subscriptions found HOT 6
- Docker Start/Stop Support
- ACR Auto-login not working in some scenario HOT 11
- How do I build an image when using an ACI context HOT 2
- Add the ability to connect Azure file shares via Docker Compose HOT 2
- WSL2 Azure Login not portable accross various WSL setups HOT 5
- Not able to install the script (install.sh) HOT 2
- Why aren't all the existing Docker commands and flags available with ACI HOT 7
- Cannot map container ports on ACI HOT 2
- Support for Runtime options with Memory, CPUs, and GPUs HOT 2
- Support for Azure account with multiple tenants HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloud-integration-beta.