スタートアップ(英語)
コミュニティ(英語)
トレーニング(英語)
チュートリアル(英語)
ドキュメント
API、AI、ツール (英語)
Mule 4.0 以降では、secureProperties キーの下にある mule-artifact.json ファイルに安全に隠すプロパティ名がカンマ区切り配列としてリストされます。
{
"configs": [
"testprops-app.xml"
],
"secureProperties": ["password", "birthdate"],
"redeploymentEnabled": true,
"name": "secure-properties",
"minMuleVersion": "4.2.1",
"requiredProduct": "MULE_EE",
"classLoaderModelLoaderDescriptor": {
"id": "mule",
"attributes": {
"exportedResources": []
}
},
"bundleDescriptorLoader": {
"id": "mule",
"attributes": {}
}
}
5 行目には 2 つのセキュアなプロパティが示されています。
secureProperties エントリは、定義されている場所 (または定義されているか否か) に関係なく、すべてのプロパティに影響します。
ローカルテストを実行する場合は、プロパティとその値を定義する YAML ファイルを作成して src/main/resources フォルダーに追加します。
http:
port: 8081
username: "testuser"
password: "testpass123"
birthdate: "01/01/2006"
Mule 3 では mule-app.properties ファイルにプロパティを配置します。
db.user=john
db.password=mypassword
salesforce.user=john1
salesforce.password=mysfpassword
secure.properties=db.password,salesforce.password


