Control secrets access
See original GitHub issueWhen creating an experiment we can pass secrets based on the variable environment,
"secrets": {
"vault": {
"token": {
"type": "env",
"key": "VAULT_TOKEN_"
},
"address": {
"type": "env",
"key": "VAULT_ADDR"
}
}
}
Now we should be able to access them in the controls (e.g. the control.py file I provided)
"controls": [
{
"name": "tracing",
"provider": {
"type": "python",
"module": "my_module.control"
}
}
]
The first control that is called (i.e. configure_control)
def configure_control(
configuration: Configuration = None,
secrets: Secrets = None,
settings: Settings = None,
experiment: Experiment = None,
):
successfully converts the templates:
"token": {
"type": "env",
"key": "VAULT_TOKEN_"
},
"address": {
"type": "env",
"key": "VAULT_ADDR"
}
into real value. and I can access them via the secrets
parameter.
Yet all the other controls:
- before_experiment_control
- after_experiment_control
- before_hypothesis_control
- after_hypothesis_control
- before_method_control
- after_method_control
- before_rollback_control
- after_rollback_control
- before_activity_control
- after_activity_control
have the secret parameter, but all of them get None value (it’s the default value - meaning no secrets was provided) how do we get secrets in other controls functions? or why we don’t get them? could not find any relevant information in the doc
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Secret access control - Azure Databricks | Microsoft Learn
Access control for secrets is managed at the secret scope level. An access control list (ACL) defines a relationship between an Azure Databricks ......
Read more >Secret access control | Databricks on AWS
Access control for secrets is managed at the secret scope level. An access control list (ACL) defines a relationship between a Databricks ...
Read more >Authentication and access control for AWS Secrets Manager
Secrets Manager uses AWS Identity and Access Management (IAM) to secure access to secrets. IAM provides authentication and access control.
Read more >Access control with IAM - Secret Manager - Google Cloud
Secret Manager uses Identity and Access Management (IAM) for access control. To create, manage, list, or access a secret, the appropriate IAM permissions ......
Read more >Control: Every Hidden Location And How To Reach Them
Control has 19 hidden locations. We walk you through exactly how to find them all.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
sure, ill check it out ASAP, thank you very much.
The docs will eventually reflect whichever we go for as well.