Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add column disable_local_auth to table azure_cosmosdb_account. Closes #735 #736

Merged
merged 3 commits into from
Mar 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 8 additions & 1 deletion azure/table_azure_cosmosdb_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"strings"

"github.com/Azure/azure-sdk-for-go/services/preview/cosmos-db/mgmt/2021-04-01-preview/documentdb"
"github.com/Azure/azure-sdk-for-go/services/cosmos-db/mgmt/2021-06-15/documentdb"
"github.com/turbot/steampipe-plugin-sdk/v5/grpc/proto"
"github.com/turbot/steampipe-plugin-sdk/v5/plugin/transform"

Expand Down Expand Up @@ -142,6 +142,13 @@ func tableAzureCosmosDBAccount(_ context.Context) *plugin.Table {
Transform: transform.FromField("DatabaseAccount.DatabaseAccountGetProperties.IsVirtualNetworkFilterEnabled"),
Default: false,
},
{
Name: "disable_local_auth",
Description: "Disable local authentication and ensure only MSI and AAD can be used exclusively for authentication. Defaults to false.",
Type: proto.ColumnType_BOOL,
Transform: transform.FromField("DatabaseAccount.DatabaseAccountGetProperties.DisableLocalAuth"),
Default: false,
},
{
Name: "key_vault_key_uri",
Description: "The URI of the key vault, used to encrypt the Cosmos DB database account.",
Expand Down