Improvements
Fix using email addresses as usernames for Argo Workflows
Using an email address as the username when deploying with a `project` decorator to Argo Workflows is now possible. This release fixes an issue with some generated resources containing characters that are not permitted in names of Argo Workflow resources.
The `secrets` decorator now supports assuming roles
This release adds the capability to assume specific roles when accessing secrets with the `secrets` decorator. The role for accessing a secret can be defined in the following ways
As a global default
By setting the `METAFLOW_DEFAULT_SECRET_ROLE` environment variable, this role will be assumed when accessing any secret specified in the decorator.
As a global option in the decorator
This will assume the role `secret-iam-role` for accessing all of the secrets in the sources list.
python
secrets(
sources=["first-secret-source", "second-secret-source"],
role="secret-iam-role"
)
Or on a per secret basis
Assuming a different role based on the secret in question can be done as well
python
secrets(
sources=[
{"type": "aws-secrets-manager", "id": "first-secret-source", "role": "first-secret-role"},
{"type": "aws-secrets-manager", "id": "second-secret-source", "role": "second-secret-role"}
]
)
In case you need any assistance or have feedback for us, ping us at [chat.metaflow.org](http://chat.metaflow.org/) or open a GitHub issue.
What's Changed
* [OBP] support assuming roles to read secrets by jackie-ob in https://github.com/Netflix/metaflow/pull/1418
* fix two docstrings that make API docs unhappy by tuulos in https://github.com/Netflix/metaflow/pull/1441
* Properly validate a config value against the type of its default by romain-intel in https://github.com/Netflix/metaflow/pull/1426
* Add additional options to trigger and trigger_on_finish by romain-intel in https://github.com/Netflix/metaflow/pull/1398
* Wrap errors importing over the escape hatch as ImportError by romain-intel in https://github.com/Netflix/metaflow/pull/1446
* Setting default time for files in code package to Dec 3, 2019 by pjoshi30 in https://github.com/Netflix/metaflow/pull/1445
* Fix issue with handling of exceptions in the escape hatch by romain-intel in https://github.com/Netflix/metaflow/pull/1444
* fix: support email in argo workflow names by saikonen in https://github.com/Netflix/metaflow/pull/1448
* fix: email naming support for argo events by saikonen in https://github.com/Netflix/metaflow/pull/1450
* bump version to 2.9.4 by saikonen in https://github.com/Netflix/metaflow/pull/1451
**Full Changelog**: https://github.com/Netflix/metaflow/compare/2.9.3...2.9.4