spinframework / spinframework/spin-operator
Add support for cloud workload identity
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 289
- Forks
- 34
- PR merge metrics
- No merged PRs in 30d
Description
Many cloud providers offer seamless integration with their identity story, which is often referred to as "Workload Identity". Although SpinKube should provide a cloud-agnostic implementation, I'll layout the user story and explain the concept using Azure services and Azure Workload Identity.
User Story
As an Spin App developer I want to use cloud services provided by Azure without having to specify access keys, passwords or tokens manually. Instead, I want to assign an Azure Identity to my Spin App and configure RBAC in Azure to allow that particular Azure Identity interacting with chosen Azure Services.
Azure Workload Identity
By deploying Azure Workload Identity to an Azure Kubernetes Service (AKS) cluster, and configuring the cluster itself accordingly, workloads could obtain tokens ( see concept) for interacting with Azure Services.
From an app developers point of view, two things must be done, to make a workload use Azure Workload Identity:
- the correct
serviceAccountNamemust be specified on the Pod - the label
azure.workload.identity/use: "true"must be specified on the Pod
Spin Host vs Spin App
In the context of Spin, there are two layers in which users would want to use Azure Workload Identity in order to streamline and harden integrations and interactions with Azure Services:
- Spin Host level:
- Using Azure Key Vault as Application Variable Provider
- Using Azure CosmosDB or Azure Cache for Redis as key-value store
- Spin App level:
- Accessing the data plane of various Azure Services e.g. Azure Storage Account, ...
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files, tests, or entry points are named. Start by reading the Azure Workload Identity concept links and separating the Spin Host and Spin App paths described in the issue. The scope and validation criteria need to be agreed before implementation can be considered done.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, kubernetes
- Domain
- authentication, cloud, infrastructure
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100