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