Environment Secrets Store¶
Class: EnvironmentSecretsStoreBlockV1
The Environment Secrets Store block is a secure and flexible solution for fetching secrets stored as environmental variables. It is designed to enable Workflows to access sensitive information, such as API keys or service credentials, without embedding them directly into the Workflow definitions.
This block simplifies the integration of external services while prioritizing security and adaptability. You can
use secrets fetched from environment (which can be set by system administrator to be available in self-hosted
inference server) to pass as inputs to other steps.
Credentials security
It is strongly advised to use secrets providers (available when running self-hosted inference server)
or workflows parameters to pass credentials. Do not hardcode secrets in Workflows definitions.
Blocks limitations
This block can only run on self-hosted inference server, we Roboflow does not allow exporting env
variables from Hosted Platform due to security concerns.
🛠️ Block configuration¶
Block has configuration parameter variables_storing_secrets that must be filled with list of
environmental variables which will be exposed as block outputs. Thanks to that, you can
use them as inputs for other blocks. Please note that names of outputs will be lowercased. For example,
the following settings:
variables_storing_secrets=["MY_SECRET_A", "MY_SECRET_B"]
-
my_secret_a -
my_secret_b
Type identifier¶
Use the following identifier in step "type" field: roboflow_core/environment_secrets_store@v1to add the block as
as step in your workflow.
Properties¶
| Name | Type | Description | Refs |
|---|---|---|---|
name |
str |
Enter a unique identifier for this step.. | ❌ |
variables_storing_secrets |
List[str] |
List with names of environment variables to fetch. Each will create separate block output.. | ❌ |
The Refs column marks possibility to parametrise the property with dynamic values available
in workflow runtime. See Bindings for more info.
Available Connections¶
Compatible Blocks
Check what blocks you can connect to Environment Secrets Store in version v1.
- inputs: None
- outputs:
Absolute Static Crop,Relative Static Crop,Expression,LMM For Classification,VLM as Classifier,Seg Preview,Instance Segmentation Model,Trace Visualization,Color Visualization,Polygon Zone Visualization,Camera Focus,Halo Visualization,Identify Changes,Camera Calibration,VLM as Classifier,Triangle Visualization,Single-Label Classification Model,Image Threshold,Detections Classes Replacement,Gaze Detection,Single-Label Classification Model,Detection Offset,Morphological Transformation,Roboflow Custom Metadata,Image Preprocessing,Grid Visualization,Cache Set,Line Counter Visualization,SIFT Comparison,Stitch OCR Detections,Path Deviation,PTZ Tracking (ONVIF).md),Model Comparison Visualization,Multi-Label Classification Model,Multi-Label Classification Model,Roboflow Dataset Upload,Template Matching,Line Counter,Path Deviation,Polygon Visualization,Detections Stabilizer,Llama 3.2 Vision,Icon Visualization,Bounding Rectangle,Local File Sink,VLM as Detector,Twilio SMS Notification,SIFT,Cosine Similarity,Classification Label Visualization,Background Color Visualization,Webhook Sink,Dynamic Crop,Pixelate Visualization,Dominant Color,Detections Consensus,QR Code Detection,Email Notification,Buffer,Image Slicer,Crop Visualization,Keypoint Detection Model,Mask Visualization,Detections Merge,Barcode Detection,Detections Transformation,Depth Estimation,Rate Limiter,Perspective Correction,Keypoint Detection Model,Distance Measurement,EasyOCR,Circle Visualization,Stability AI Outpainting,Byte Tracker,Size Measurement,VLM as Detector,JSON Parser,Keypoint Visualization,Byte Tracker,Object Detection Model,Clip Comparison,SmolVLM2,Google Vision OCR,Slack Notification,Dimension Collapse,CSV Formatter,OCR Model,Dynamic Zone,Segment Anything 2 Model,Stability AI Inpainting,Reference Path Visualization,Corner Visualization,Ellipse Visualization,OpenAI,Time in Zone,CogVLM,OpenAI,YOLO-World Model,Continue If,Florence-2 Model,Roboflow Dataset Upload,Data Aggregator,Label Visualization,OpenAI,Line Counter,First Non Empty Or Default,Model Monitoring Inference Aggregator,Time in Zone,Velocity,Instance Segmentation Model,Time in Zone,Blur Visualization,Delta Filter,Image Contours,Clip Comparison,Identify Outliers,Object Detection Model,Overlap Filter,Moondream2,Property Definition,Bounding Box Visualization,Dot Visualization,Byte Tracker,CLIP Embedding Model,Detections Combine,Stitch Images,Detections Filter,Qwen2.5-VL,Perception Encoder Embedding Model,SIFT Comparison,Pixel Color Count,QR Code Generator,Image Slicer,Google Gemini,Stability AI Image Generation,Image Convert Grayscale,Contrast Equalization,Anthropic Claude,Image Blur,Cache Get,LMM,Detections Stitch,Florence-2 Model
Input and Output Bindings¶
The available connections depend on its binding kinds. Check what binding kinds
Environment Secrets Store in version v1 has.
Bindings
-
input
-
output
*(*): Equivalent of any element.
Example JSON definition of step Environment Secrets Store in version v1
{
"name": "<your_step_name_here>",
"type": "roboflow_core/environment_secrets_store@v1",
"variables_storing_secrets": [
"MY_API_KEY",
"OTHER_API_KEY"
]
}