2016-05-11 54 views
1

我正在開發一種解決方案,它涉及使用BizTalk SB-Messaging適配器從Azure服務總線隊列中讀取消息。我正在使用BizTalk部署框架來部署沒有用戶輸入的應用程序。如何安全地設置SB-Messaging適配器憑據?

某些適配器可以選擇使用Single Sign-On數據庫(選項「Use SSO」)獲取外部系統的憑證。 SB-Messaging適配器不具備此功能,並且要求在該用戶界面中輸入該服務的ACS(訪問控制服務)或SAS(共享訪問密鑰)憑據(本例中爲隊列)。 BTDF也可以通過綁定文件中輸入他們(有這些特殊性質vt="[number]"這會導致它們被忽略,除非重寫,大概是爲了阻止以明文形式存儲憑據打消了開發商的屬性進行設置。

如何設置在這種情況下,我認爲寫入磁盤或保存在源代碼管理中的任何數據都是明文的,這意味着創建包含這些憑據的綁定文件是不可接受的。

我會理想的像這樣工作,就像支持SSO的適配器一樣。這可能嗎?

(順便說一句,任何知道爲什麼微軟顯然不打算實現這一點的人都會歡迎發表他們的觀點)

回答

2

我很確定SB-Messaging使用SSO,但請記住,有兩個適配器使用的不同模式。

某些(如WCF包裝)使用SSO的憑證功能來存儲用戶名/密碼組合。其他人,如FTP,則將其整個配置(包括憑據)存儲在SSO中。 SB-Messaging將遵循這種模式。

如果你有'不要存儲密碼'的規則,那麼你將不得不像SBT一樣使用SB-Messaging。執行部署的管理員必須在部署後輸入目標特定憑證。這是相當普遍的,並且在任何工具中都不存在差距。

另一種替代方法是爲部署之前修改綁定文件的BTFD創建自定義MSBuild目標。自定義任務可以從SSO讀取憑證。

+1

我想我應該澄清 - 我說的提名關聯應用程序來拉憑據從。這使我們只能配置一次,而不是每次部署應用程序。如果適配器存儲通過SSO中的UI輸入的配置,那很好,但不是我所追求的。不得不手動輸入憑證是執行持續集成的阻礙因素,它可以以完全自動化的方式實現,這是BizTalk打破這種流程的唯一方面。 –

+0

@TomW您可能希望通過此說明更新您的問題。 – Dijkgraaf

+0

是的,我明白了。但正如我所說,SB-Messaging遵循第二種模式。對不起,但它不太可能會改變。備選添加到我的答案。 –

3

是大多數適配器支持SSO關聯應用程序或使用單點登錄的用戶名憑據,但他們都不支持SSO關聯的ACSSAS代理設置(見以下表格)

似乎不支持SSO的用戶名憑證的加盟設置要麼是非常舊的適配器,要麼是最新的適配器。

沒有爲ACS,SAS或代理設置設置SSO聯盟設置將看起來是他們沒有想到的。

所以要回答你的問題。不,它看起來不可能使用SSO加盟這個適配器,因爲您甚至沒有添加自定義行爲的選項,就像您可以使用WCF適配器一樣,這是我們如何實施oAuth行爲以使用SSO關聯公司獲取WCF-WebHttp的Salesforce憑據&。

參見BizTalk Server 2013 R2: Adapters without Single Sign-On CapabilityBizTalk Server 2013 R2: Adapters without Single Sign-On Capability on Technet

使用單點登錄或SSO關聯(的BizTalk 2013R2)

+---------------------+---------+-------------+-------+-------+---------------+-------------+-------+-------+---------------+ 
| Adapter    | Receive |    |  |  |    | Send  |  |  |    | 
+---------------------+---------+-------------+-------+-------+---------------+-------------+-------+-------+---------------+ 
|      | Use  | SSO   | ACS/ | Proxy | Endpoint  | SSO   | ACS/ | Proxy | Endpoint  | 
|      | SSO | Affiliate | SAS |  | Behaviour | Affiliate | SAS |  | Behaviour | 
+---------------------+---------+-------------+-------+-------+---------------+-------------+-------+-------+---------------+ 
| File    | No  | No   | -  | -  | -    | No   | -  | -  | -    | 
+---------------------+---------+-------------+-------+-------+---------------+-------------+-------+-------+---------------+ 
| FTP     | No  | Yes   | -  | No | -    | Yes   | -  | No | -    | 
+---------------------+---------+-------------+-------+-------+---------------+-------------+-------+-------+---------------+ 
| HTTP    | Yes  | -   | -  | -  | -    | Yes   | -  | No | -    | 
+---------------------+---------+-------------+-------+-------+---------------+-------------+-------+-------+---------------+ 
| MQSeries   | No  | -   | -  | -  | -    | Yes   | -  | -  | -    | 
+---------------------+---------+-------------+-------+-------+---------------+-------------+-------+-------+---------------+ 
| MSMQ    | No  | No   | -  | -  | -    | No   | -  | -  | -    | 
+---------------------+---------+-------------+-------+-------+---------------+-------------+-------+-------+---------------+ 
| POP3    | No  | No   | -  | -  | -    | -   | -  | -  | -    | 
+---------------------+---------+-------------+-------+-------+---------------+-------------+-------+-------+---------------+ 
| SB-Messaging  | No  | -   | No | -  | -    | -   | No | -  | -    | 
+---------------------+---------+-------------+-------+-------+---------------+-------------+-------+-------+---------------+ 
| SFTP    | No  | No   | -  | No | -    | No   | -  | No | -    | 
+---------------------+---------+-------------+-------+-------+---------------+-------------+-------+-------+---------------+ 
| SMTP    | -  | -   | -  | -  | -    | No   | -  | -  | -    | 
+---------------------+---------+-------------+-------+-------+---------------+-------------+-------+-------+---------------+ 
| SOAP    | Yes  | -   | -  | -  | -    | Yes   | -  | No | -    | 
+---------------------+---------+-------------+-------+-------+---------------+-------------+-------+-------+---------------+ 
| SQL     | No  | No   | -  | -  | -    | No   | -  | -  | -    | 
+---------------------+---------+-------------+-------+-------+---------------+-------------+-------+-------+---------------+ 
| WCF-BasicHttp  | Yes  | -   | -  | -  | in WCF-Custom | Yes   | No | No | in WCF-Custom | 
+---------------------+---------+-------------+-------+-------+---------------+-------------+-------+-------+---------------+ 
| WCF-BasicHttpRelay | No  | -   | No | -  | No   | Yes   | No | No | No   | 
+---------------------+---------+-------------+-------+-------+---------------+-------------+-------+-------+---------------+ 
| WCF-Custom   | Yes  | Yes   | -  | -  | Yes   | Yes   | No | No | Yes   | 
+---------------------+---------+-------------+-------+-------+---------------+-------------+-------+-------+---------------+ 
| WCF-CustomIsolated | Yes  | Yes   | -  | -  | -    | -   | -  | -  | -    | 
+---------------------+---------+-------------+-------+-------+---------------+-------------+-------+-------+---------------+ 
| WCF-NetMsmq   | -  | -   | -  | -  | in WCF-Custom | Yes   | -  | -  | in WCF-Custom | 
+---------------------+---------+-------------+-------+-------+---------------+-------------+-------+-------+---------------+ 
| WCF-NetNamedPipe | Yes  | -   | -  | -  | in WCF-Custom | -   | -  | -  | in WCF-Custom | 
+---------------------+---------+-------------+-------+-------+---------------+-------------+-------+-------+---------------+ 
| WCF-NetTcp   | Yes  | -   | -  | -  | in WCF-Custom | Yes   | -  | -  | in WCF-Custom | 
+---------------------+---------+-------------+-------+-------+---------------+-------------+-------+-------+---------------+ 
| WCF-NetTcpRelay  | No  | -   | No | -  | -    | Yes   | No | -  | No   | 
+---------------------+---------+-------------+-------+-------+---------------+-------------+-------+-------+---------------+ 
| WCF-OracleDB  | Yes  | Yes   | -  | -  | Yes   | Yes   | -  | No | Yes   | 
+---------------------+---------+-------------+-------+-------+---------------+-------------+-------+-------+---------------+ 
| WCF-OracleEBS  | Yes  | Yes   | -  | -  | Yes   | Yes   | -  | No | Yes   | 
+---------------------+---------+-------------+-------+-------+---------------+-------------+-------+-------+---------------+ 
| WCF-SQL    | Yes  | Yes   | -  | -  | Yes   | Yes   | -  | No | Yes   | 
+---------------------+---------+-------------+-------+-------+---------------+-------------+-------+-------+---------------+ 
| WCF-WebHttp   | Yes  | -   | -  | -  | Yes   | Yes   | No | No | Yes   | 
+---------------------+---------+-------------+-------+-------+---------------+-------------+-------+-------+---------------+ 
| WCF-WSHttp   | Yes  | -   | -  | -  | in WCF-Custom | Yes   | No | No | in WCF-Custom | 
+---------------------+---------+-------------+-------+-------+---------------+-------------+-------+-------+---------------+ 
| Windows    | No  | No   | -  | -  | -    | No   | -  | -  | -    | 
| Sharepoint Server |   |    |  |  |    |    |  |  |    | 
+---------------------+---------+-------------+-------+-------+---------------+-------------+-------+-------+---------------+