@@ -17,12 +17,6 @@ imports:
17
17
18
18
topology_template :
19
19
inputs :
20
- dls_api_username :
21
- type : string
22
- required : true
23
- dls_api_password :
24
- type : string
25
- required : true
26
20
dls_api_url :
27
21
type : string
28
22
required : true
@@ -100,8 +94,8 @@ topology_template:
100
94
properties :
101
95
target_host : { get_input: target_host }
102
96
dls_api_url : { get_input: dls_api_url }
103
- dls_api_username : { get_input: dls_api_username }
104
- dls_api_password : { get_input: dls_api_username }
97
+ dls_api_username : { get_secret: [/secret/data/services_secrets/dls, data=username] }
98
+ dls_api_password : { get_secret: [/secret/data/services_secrets/dls, data=password] }
105
99
dag_id : " taskflow_example"
106
100
debug : { get_input: debug }
107
101
user_id : " "
@@ -116,8 +110,8 @@ topology_template:
116
110
target_host : { get_input: target_host }
117
111
register : { get_input: register_result_in_datacat }
118
112
dls_api_url : { get_input: dls_api_url }
119
- dls_api_username : { get_input: dls_api_username }
120
- dls_api_password : { get_input: dls_api_password }
113
+ dls_api_username : { get_secret: [/secret/data/services_secrets/dls, data=username] }
114
+ dls_api_password : { get_secret: [/secret/data/services_secrets/dls, data=password] }
121
115
dag_id : " upload_example"
122
116
debug : { get_input: debug }
123
117
user_id : " "
@@ -136,8 +130,8 @@ topology_template:
136
130
properties :
137
131
service_url : " https://bscgrid20.bsc.es/image_creation"
138
132
insecure_tls : true
139
- username : test
140
- password : T3st22
133
+ username : { get_secret: [/secret/data/services_secrets/image_creation, data=user] }
134
+ password : { get_secret: [/secret/data/services_secrets/image_creation, data=password] }
141
135
machine :
142
136
container_engine : singularity
143
137
platform : " linux/amd64"
@@ -156,8 +150,8 @@ topology_template:
156
150
target_host : { get_input: target_host }
157
151
target_path : { get_input: container_image_transfer_directory }
158
152
dls_api_url : { get_input: dls_api_url }
159
- dls_api_username : { get_input: dls_api_username }
160
- dls_api_password : { get_input: dls_api_password }
153
+ dls_api_username : { get_secret: [/secret/data/services_secrets/dls, data=username] }
154
+ dls_api_password : { get_secret: [/secret/data/services_secrets/dls, data=password] }
161
155
dag_id : " transfer_image"
162
156
debug : { get_input: debug }
163
157
user_id : { get_input: user_id }
0 commit comments