Environment Secrets Store¶
Class: EnvironmentSecretsStoreBlockV1
The Environment Secrets Store block is a secure and flexible solution for fetching secrets stored as environmental variables.
How This Block Works¶
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:
Mask Visualization,Classification Label Visualization,Detections Consensus,Instance Segmentation Model,Detections Merge,Webhook Sink,Multi-Label Classification Model,Email Notification,QR Code Generator,VLM As Detector,Multi-Label Classification Model,LMM,SAM 3,Detection Offset,Corner Visualization,Image Convert Grayscale,Stability AI Outpainting,Segment Anything 2 Model,Halo Visualization,Object Detection Model,JSON Parser,Single-Label Classification Model,Trace Visualization,Google Vision OCR,Instance Segmentation Model,Clip Comparison,CSV Formatter,Text Display,Stitch Images,Google Gemini,Slack Notification,Local File Sink,VLM As Classifier,PTZ Tracking (ONVIF).md),Roboflow Dataset Upload,Color Visualization,Dot Visualization,Polygon Visualization,Object Detection Model,Anthropic Claude,Buffer,Byte Tracker,Contrast Equalization,Identify Changes,Detections Classes Replacement,Dimension Collapse,Perception Encoder Embedding Model,First Non Empty Or Default,Velocity,Continue If,Expression,Moondream2,SIFT Comparison,Halo Visualization,Florence-2 Model,Blur Visualization,Label Visualization,Twilio SMS/MMS Notification,Ellipse Visualization,OpenAI,SIFT,Model Monitoring Inference Aggregator,Single-Label Classification Model,Detections List Roll-Up,OpenAI,Image Threshold,Background Color Visualization,Model Comparison Visualization,Size Measurement,OpenAI,Keypoint Detection Model,Gaze Detection,Polygon Visualization,Twilio SMS Notification,SAM 3,Bounding Box Visualization,OCR Model,Overlap Filter,Time in Zone,Icon Visualization,Google Gemini,Florence-2 Model,Roboflow Dataset Upload,Anthropic Claude,Rate Limiter,Dynamic Zone,Dynamic Crop,CLIP Embedding Model,VLM As Detector,Google Gemini,Path Deviation,Image Blur,Byte Tracker,Line Counter,SmolVLM2,Cache Set,Stability AI Inpainting,Template Matching,Image Contours,Path Deviation,Morphological Transformation,Triangle Visualization,Bounding Rectangle,Detections Stitch,Relative Static Crop,Property Definition,Detections Filter,Grid Visualization,Camera Calibration,Detections Stabilizer,Delta Filter,Camera Focus,Image Slicer,Detections Combine,Llama 3.2 Vision,Line Counter Visualization,Keypoint Detection Model,LMM For Classification,Distance Measurement,SIFT Comparison,Camera Focus,Dominant Color,Time in Zone,Background Subtraction,Image Slicer,Circle Visualization,Seg Preview,Identify Outliers,Qwen3-VL,Barcode Detection,Clip Comparison,Email Notification,QR Code Detection,Byte Tracker,Image Preprocessing,SAM 3,Cache Get,Cosine Similarity,Depth Estimation,Time in Zone,Line Counter,CogVLM,Absolute Static Crop,Roboflow Custom Metadata,EasyOCR,Stitch OCR Detections,Perspective Correction,Qwen2.5-VL,Anthropic Claude,Pixelate Visualization,Data Aggregator,Reference Path Visualization,Stability AI Image Generation,Keypoint Visualization,VLM As Classifier,Detection Event Log,Polygon Zone Visualization,YOLO-World Model,Stitch OCR Detections,Crop Visualization,Pixel Color Count,Motion Detection,OpenAI,Detections Transformation
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"
]
}