Code Monkey home page Code Monkey logo

terraform-azurerm-kubernetes-azuread-integration's Introduction

Kubernetes AzureAD integration

A complementary module to Kubernetes (AKS) module to create the server and client application required for Azure AD integration. It will output the client application id, server application id and password required as input parameters to avinor/kubernetes/azurerm module.

This module requires elevated access to be able to create the application in AzureAD and potensially grant access. It is therefore not recommended to be run as any CI/CD pipeline, but instead manually before running any automated process. The output can still be used by reading remote state.

It is important to grant access to the application before using them for Kubernetes deployment. See grant access for details.

Accesses are based on Microsoft documentation.

Usage

Examples use tau.

module {
    source = "avinor/kubernetes-azuread-integration/azurerm"
    version = "1.0.1"
}

inputs {
    server_name = "aks-server"
    client_name = "aks-client"
    end_date = "2020-01-01T00:00:00Z"
}

Output from this module can then be used when deploying Kubernetes cluster.

Grant access

If grant_access is set to true it will also try to grant access to the Azure AD application, however this requires admin access in Azure AD. If for security reasons this is not possible leave it as default to false and grant access manually after deployment.

terraform-azurerm-kubernetes-azuread-integration's People

Contributors

bassoflion avatar tesharp avatar yngveh avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

terraform-azurerm-kubernetes-azuread-integration's Issues

Windows Azure Active Directory API

I've also implemented this feature successfully in a terraform module.
But I didn't have this permission request and it also works.

You know what it does exactly?

required_resource_access {
# Windows Azure Active Directory API
resource_app_id = "00000002-0000-0000-c000-000000000000"
resource_access {
# DELEGATED PERMISSIONS: "Sign in and read user profile":
# 311a71cc-e848-46a1-bdf8-97ff7156d8e6
id = "311a71cc-e848-46a1-bdf8-97ff7156d8e6"
type = "Scope"
}
}

The documentation also just shows the other tree permissions:
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.