Skip to content

Commit

Permalink
docs(azure_blob sink): Clarify SAS connection_string support (#21611)
Browse files Browse the repository at this point in the history
Update Azure blob storage sink connection_string documentation to show SAS is supported

Closes #15394
  • Loading branch information
marc-sensenich authored Oct 24, 2024
1 parent 17466c6 commit 19ff1e1
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
16 changes: 15 additions & 1 deletion src/sinks/azure_blob/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,26 @@ impl TowerRequestConfigDefaults for AzureBlobTowerRequestConfigDefaults {
pub struct AzureBlobSinkConfig {
/// The Azure Blob Storage Account connection string.
///
/// Authentication with access key is the only supported authentication method.
/// Authentication with an access key or shared access signature (SAS)
/// are supported authentication methods. If using a non-account SAS,
/// healthchecks will fail and will need to be disabled by setting
/// `healthcheck.enabled` to `false` for this sink
///
/// When generating an account SAS, the following are the minimum required option
/// settings for Vector to access blob storage and pass a health check.
/// | Option | Value |
/// | ---------------------- | ------------------ |
/// | Allowed services | Blob |
/// | Allowed resource types | Container & Object |
/// | Allowed permissions | Read & Create |
///
/// Either `storage_account`, or this field, must be specified.
#[configurable(metadata(
docs::examples = "DefaultEndpointsProtocol=https;AccountName=mylogstorage;AccountKey=storageaccountkeybase64encoded;EndpointSuffix=core.windows.net"
))]
#[configurable(metadata(
docs::examples = "BlobEndpoint=https://mylogstorage.blob.core.windows.net/;SharedAccessSignature=generatedsastoken"
))]
pub connection_string: Option<SensitiveString>,

/// The Azure Blob Storage Account name.
Expand Down
15 changes: 13 additions & 2 deletions website/cue/reference/components/sinks/base/azure_blob.cue
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,23 @@ base: components: sinks: azure_blob: configuration: {
description: """
The Azure Blob Storage Account connection string.
Authentication with access key is the only supported authentication method.
Authentication with an access key or shared access signature (SAS)
are supported authentication methods. If using a non-account SAS,
healthchecks will fail and will need to be disabled by setting
`healthcheck.enabled` to `false` for this sink
When generating an account SAS, the following are the minimum required option
settings for Vector to access blob storage and pass a health check.
| Option | Value |
| ---------------------- | ------------------ |
| Allowed services | Blob |
| Allowed resource types | Container & Object |
| Allowed permissions | Read & Create |
Either `storage_account`, or this field, must be specified.
"""
required: false
type: string: examples: ["DefaultEndpointsProtocol=https;AccountName=mylogstorage;AccountKey=storageaccountkeybase64encoded;EndpointSuffix=core.windows.net"]
type: string: examples: ["DefaultEndpointsProtocol=https;AccountName=mylogstorage;AccountKey=storageaccountkeybase64encoded;EndpointSuffix=core.windows.net", "BlobEndpoint=https://mylogstorage.blob.core.windows.net/;SharedAccessSignature=generatedsastoken"]
}
container_name: {
description: "The Azure Blob Storage Account container name."
Expand Down

0 comments on commit 19ff1e1

Please sign in to comment.