-
Notifications
You must be signed in to change notification settings - Fork 692
Allow environment variables for Azure storage credentials #1147
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
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
437c7b0
Set environment default values for Azure storage
zalegrala b5b848b
Move environment loading to implementation
zalegrala a284907
Add test for azure error when missing credentials
zalegrala 9ee3ebb
Update changelog
zalegrala 0aa1d8e
Remove early error return for Azure creds
zalegrala 9770c55
Include initial docs on Azure management
zalegrala File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,87 @@ | ||
| --- | ||
| title: Azure Permissions and Management | ||
| weight: 3 | ||
| --- | ||
|
|
||
| # Azure Blob Storage Permissions and Management | ||
|
|
||
| In order for Tempo to authenticate to Azure blob storage, the following is | ||
| required to access the container. | ||
|
|
||
| * Storage account | ||
| * Storage account access key | ||
| * Storage account management policy | ||
|
|
||
| The `AZURE_STORAGE_ACCOUNT` and `AZURE_STORAGE_KEY` environment variables can | ||
| be used instead of setting the credentials in the Tempo configuration file. | ||
|
|
||
| The following storage account management policy shows an example of cleaning up | ||
| files from the container after they have been deleted for a period of time. | ||
|
|
||
| ```json | ||
| { | ||
| "id": "/subscriptions/00000000-0000-0000000000000000000000/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/accountName/managementPolicies/default", | ||
| "lastModifiedTime": "2021-11-30T19:19:54.855455+00:00", | ||
| "name": "DefaultManagementPolicy", | ||
| "policy": { | ||
| "rules": [ | ||
| { | ||
| "definition": { | ||
| "actions": { | ||
| "baseBlob": { | ||
| "delete": { | ||
| "daysAfterLastAccessTimeGreaterThan": null, | ||
| "daysAfterModificationGreaterThan": 60.0 | ||
| }, | ||
| "enableAutoTierToHotFromCool": null, | ||
| "tierToArchive": null, | ||
| "tierToCool": null | ||
| }, | ||
| "snapshot": null, | ||
| "version": null | ||
| }, | ||
| "filters": { | ||
| "blobIndexMatch": null, | ||
| "blobTypes": [ | ||
| "blockBlob" | ||
| ], | ||
| "prefixMatch": [ | ||
| "tempo-data" | ||
| ] | ||
| } | ||
| }, | ||
| "enabled": true, | ||
| "name": "TempoBlobRetention", | ||
| "type": "Lifecycle" | ||
| }, | ||
| { | ||
| "definition": { | ||
| "actions": { | ||
| "baseBlob": null, | ||
| "snapshot": null, | ||
| "version": { | ||
| "delete": { | ||
| "daysAfterCreationGreaterThan": 7.0 | ||
| }, | ||
| "tierToArchive": null, | ||
| "tierToCool": null | ||
| } | ||
| }, | ||
| "filters": { | ||
| "blobIndexMatch": null, | ||
| "blobTypes": [ | ||
| "blockBlob" | ||
| ], | ||
| "prefixMatch": [] | ||
| } | ||
| }, | ||
| "enabled": true, | ||
| "name": "VersionRetention", | ||
| "type": "Lifecycle" | ||
| } | ||
| ] | ||
| }, | ||
| "resourceGroup": "resource-group-name", | ||
| "type": "Microsoft.Storage/storageAccounts/managementPolicies" | ||
| } | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.