Post

Encrypt & Decrypt AAA-Info file credentials

Hello Tech Enthusiasts πŸ‘‹,

AAA is something DataPower is offerring from a day of appliance available in market. So it’s not a new topic of discussion. However, when it comes to basic-auth authentication mechanism, aaa-info file is what widely used. I usually don’t support as the creds are visible whomesover has access to domain/environment.

We do have other supported authentication and authorization mechanism, which can be helpful, but in this article I’m purely focussing on alternate solution towards encrypt/decrypt mechanism for aaa-info file credentials.

Admin Process

Adminstrator Steps

  1. Admin post plain credentials credential by using encrypt/decrypt service in DataPower.
  2. DataPower returns encrypted text to admin.
  3. Admin shared the plain username and encrypted password with client via secure line.
  4. Admin to update the aaa-info.xml file with plain username and password.

Below postman screenshot depicts the behavior of service πŸ‘‡

Encrypt Password String

Validate Encrypted Password

Sequence Diagram

Enable light theme for better visibilty of sequence diagram

sequenceDiagram
participant cl as Client
participant dp as DataPower
autonumber
cl ->> dp: Sends request with Authorization header
activate cl
activate dp
dp ->> dp: extract authorization header <br/>ZnJlZDpuYzY5a0I1c0RwNTlibDl3WURRL3pvQ2p2REsvQStHY0V1WjlKVFZkdVo4PTw=
dp ->> dp: extract encrypted password : nc69kB5sDp59bl9wYDQ/zoCjvDK/A+GcEuZ9JTVduZ8=
dp ->> dp: decrypt password using the encrypted algo and shared-secret-key : smith
dp ->> dp: construct new authorization header with plain username and decrypted password<br/>Basic ZnJlZDpzbWl0aA== 
dp ->> dp: calls AAA policy to authenticate using AAA-Info.xml file
dp ->> cl: complete transaction for further processing
deactivate dp
deactivate cl

Please do comment down your views.

β€” Keep Learning 😊

β€” Aditya Singh

If this article helped you in someway and want to support me, you can …

This post is licensed under CC BY 4.0 by the author.

Comments powered by Disqus.

Buy Me A Coffee