diff options
author | Dileep Ranganathan <dileep.ranganathan@intel.com> | 2018-10-12 02:29:49 -0700 |
---|---|---|
committer | Dileep Ranganathan <dileep.ranganathan@intel.com> | 2018-10-19 04:55:34 -0700 |
commit | c3aa7ebbb6f17c93958103077614f5bdac9837b0 (patch) | |
tree | 5688c63850524dabe9eba9cd96cf29df3cd91279 /osdfapp.py | |
parent | 8d495104b8174cdc19b4bf27b98d9b4210fec01f (diff) |
Enable SMS in OSDF
Load secrets from SMS in OSDF.
Removed secrets from osdf_config.yaml.
Unit tests to use the test/config/osdf_config.yaml.
Helm charts uses a Job to load secrets.
CSIT needs to load it using the preload tool provided by SMS.
Change-Id: I0f832033476c02958f6392abba74e4d5a36cc902
Issue-ID: OPTFRA-343
Signed-off-by: Dileep Ranganathan <dileep.ranganathan@intel.com>
Diffstat (limited to 'osdfapp.py')
-rwxr-xr-x | osdfapp.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -28,6 +28,7 @@ from flask import Flask, request, Response, g import osdf import pydevd import json +import osdf.adapters.aaf.sms as sms import osdf.adapters.policy.interface import osdf.config.credentials import osdf.config.loader @@ -207,8 +208,8 @@ if __name__ == "__main__": common_app_opts.update({'ssl_context': tuple(ssl_opts)}) opts = get_options(sys.argv) - # TODO(Dileep): Uncomment once Helm charts to preload secrets available - # sms.load_secrets() + # Load secrets from SMS + sms.load_secrets() if not opts.local and not opts.devtest: # normal deployment app.run(port=internal_port, debug=False, **common_app_opts) else: |