Azure SDK for Go - Authentication methods - Chained Credentials
Ravikanth Chaganti – Clouds and Containers
by
5M ago
So far in this series, you learned how to use different types of credentials that the Azure SDK for Go offers. You used specific credential types to authenticate with Azure in all the examples. You use a set of credential types for the development environment and a different set for production use cases. However, what if you want to use the code unmodified between development and production? What if you must test the code that uses managed identity credentials locally where the type of credentials you must use are different? This is where credential chaining comes to the rescue. The azidentity ..read more
Visit website
Azure SDK for Go - Authentication methods - Environmental credential
Ravikanth Chaganti – Clouds and Containers
by
5M ago
In the last part of this series, you learned how to use different credential types in a local development environment. Another method you can use within local development and in a hosted/deployed service is providing credentials through environment variables. This is done using the NewEnvironmentCredential() method in the azidentity package. 1 2 3 4 5 // github.com/rchaganti/azure-go/02-auth101/envCredential.go cred, err := azidentity.NewEnvironmentCredential(nil) if err != nil { log.Fatal(err) } This credential type supports multiple types of authentication in the following or ..read more
Visit website
Azure SDK for Go - Authentication methods for local development environment
Ravikanth Chaganti – Clouds and Containers
by
5M ago
The earlier article introduced you to the Azure SDK for Go. In the example towards the end of that article, you may have noticed how the NewAzureCLICredential method of the azidentity package was used to access locally available Azure CLI credentials. This is perfect for local development and is not recommended for production environments. The Azure SDK supports different types of credentials depending on where your Go code is running. In this article in the Azure SDK for Go series, you will learn about each of these credential types and when you use each of these credentials. All code sample ..read more
Visit website
Getting Started with Azure SDK for Go
Ravikanth Chaganti – Clouds and Containers
by
5M ago
Microsoft Azure provides vast services from basic computing to AI/ML. Azure Resource Manager (ARM) is our entry point to access and manage these services and provides a consistent management layer (APIs) that enables you to work with resources in Azure. Source: Azure Resource Manager overview - Azure Resource Manager | Microsoft Learn Any resource management request lands at the ARM, get authenticated, and enacted. As the diagram above indicates, there are many ways to interact with ARM. You can choose one or more ways to create and manage your Azure resources based on your preference. Azu ..read more
Visit website
Determining time zone differences in PowerShell for effective meeting planning
Ravikanth Chaganti – Clouds and Containers
by
5M ago
I work on a team that has members across different time zones. It is important to ensure that I schedule meetings such that team members do not have to either stay late or wake up early. Being a command line person, I quickly wrote this PowerShell script to help me determine the time differences. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 param ( [Parameter(Mandatory = $true)] [String[]] $Timezone, [Parameter()] [Datetime] $Target ) if (!$Target) { # Get the local time as ..read more
Visit website
WebAssembly (wasm) learning playground in VS Code
Ravikanth Chaganti – Clouds and Containers
by
5M ago
WebAssembly, a.k.a Wasm, defines a portable binary-code format for a stack-based virtual machine. Wasm enables developers to write code that runs in web browsers with near-native performance using languages such as C, C++, Rust, Go, and many other modern languages. Wasm is not a replacement for JavaScript but is designed to complement and run alongside JavaScript. I am still learning about Wasm and looking at opportunities to use Wasm in designing modern and cloud-native applications. My focus has been using the Go programming language for Wasm as well. So, when I started learning Wasm, I quic ..read more
Visit website
Applied Go - Creating a CLI application
Ravikanth Chaganti – Clouds and Containers
by
5M ago
Practice makes permanent - Bobby Robson When learning a new programming language or any technology for that matter, we need to practice what we learn, and that it when it becomes permanent. I am starting this new series of posts to publish different things I tried/built to make sure what I learned – through different Go programming books, video courses, and community content – stays with me permanently. The first one in this series is about using Cobra package to build a CLI application. What you will learn today? Using Cobra package to add command line parameters The typical program struct ..read more
Visit website
Keyless git commit signing using Sigstore gitsign in a VS Code devcontainer
Ravikanth Chaganti – Clouds and Containers
by
5M ago
Once a Sigstore fan, always a fan! Sigstore has become a good part of my research around SBOM and supply-chain security. I wrote about a cosign VS Code devcontainer feature earlier and then stumbled upon gitsign. In the past, I tried using GPG keys to sign my git commits but could not really sustain that as I kept changing machines and using different development environments. When I first looked at cosign, my initial thought was using it also for git commit signing but as I started reading Sigstore documentation, I discovered gitsign! Similar to my cosign VS Code devcontainer feature, I quick ..read more
Visit website
Sigstore Cosign VS Code development container feature
Ravikanth Chaganti – Clouds and Containers
by
5M ago
For those following me here or social media will know that I am a big fan of Visual Studio development containers. I wrote a bit about Visual Studio Code development containers. I have been using devcontainers for different development environments extensively. I have a sample repo on GitHub that has all devcontainer definitions that I have been using for different projects. A latest addition to this list is the Sigstore cosign devcontainer feature. If you are new to creating VS Code devcontainer features, you can read my earlier article where I walked through creating a devcontainer feature ..read more
Visit website
Building container images - using no tools
Ravikanth Chaganti – Clouds and Containers
by
5M ago
In a couple of earlier articles, we looked at Linux constructs used in building container images and the OCI image specification which standardizes the container image format. It is now time to understand how we can create container images. Knowing this is important to optimize the image size and building secure container images. And, of course, this knowledge also helps us appreciate what tools like Docker CLI or Buildah among many others help us achieve. There are many tools to build container images. We shall look at each of these methods in-depth in later parts of this series of articles o ..read more
Visit website

Follow Ravikanth Chaganti – Clouds and Containers on FeedSpot

Continue with Google
Continue with Apple
OR