- Create resource group
- Create App service
- Configure App service
- Create Key vault
- Configure Key vault
- Configure Key vault in the App service
- Test deployment with cURL
Go to https://portal.azure.com/#create/Microsoft.ResourceGroup
- Use
til-pseudonymization-service
as aResource group
name - Select
West Europe
(or your prefered region) as aRegion
- Review all provided information and click on
Create
Go to https://portal.azure.com/#create/Microsoft.WebSite
- Select
til-pseudonymization-service
in theResource group
field - Use
til-pseudonymization-service-app
as anInstance name
- Select
Docker Container
publish option - Select
Linux
as anOperating System
- Select
Europe West
(or your prefered region) as aRegion
- Select
Single Container
as anOption
- Select
Private Registry
as anImage Source
- Use
https://eu.gcr.io
as aServer URL
- Use
proxy-272310/proxy:<version>
as anImage and tag
(the latest image version can be found here)
- Review all provided information and click on
Create
- Go to the
til-pseudonymization-service-app
app service overview page
- Select
Identity
in the left navigation bar - Select
System assigned
tab - Set
Status
toOn
- Select
Configuration
in the left navigation bar - Select
Application settings
tab
- Use
80
as an application settings value
- Use
URL
from the overview page (e.g. https://til-pseudonymization-service-app.azurewebsites.net) as an application settings value
- Use comma separeted domain list (e.g.
yourdomain.com,yourdomain.eu
) as an application settings value
- Use
false/true
depending on your anonymization settings
- Use
false/true
depending on your anonymization settings
- Use
false/true
depending on your anonymization settings
- Use
false/true
depending on your anonymization settings
- Select
Health check
in the left navigation bar - Set
Health check
toEnable
- Use
/healthcheck
as a path - Set
Load balancing
to2 minutes
Go to https://portal.azure.com/#create/Microsoft.KeyVault
- Select
til-pseudonymization-service
in theResource group
field - Use
til-kv
as aKey vault name
- Select
West Europe
(or your prefered region) as aRegion
- Set
Permission model
toVault access policy
- Click on
Add Access Policy
- Select
Get
secret management operation in theSecret permissions
selectbox - Select
til-pseudonymization-service-app
as aprincipal
- Click on
Add
- Review all provided information and click on
Create
- Go to
til-kv
key vault overview page
- Select
Secrets
in the left navigation bar
Generate random string and use it as a ANONYMIZATION-SALT
secret value
$ LC_CTYPE=C tr -dc A-Za-z0-9 </dev/urandom | head -c 32 ; echo ''
Generate random string and use it as a API-TOKEN
secret value
$ LC_CTYPE=C tr -dc A-Za-z0-9 </dev/urandom | head -c 48 ; echo ''
Use src/helpers/genKey.js utility to generate Private and Public key pair.
$ node src/helpers/genKey.js
Use generated key pair as RSA-PRIVATE-KEY
and RSA-PUBLIC-KEY
secret values respectively
- Get Google Workspace credentials
- Create secret named
GSUITE-CLIENT-EMAIL
and useclient_email
from generatedcredentials.json
as a secret value - Create secret named
GSUITE-PRIVATE-KEY
and useprivate_key
from generatedcredentials.json
as a secret value - Create secret named
GSUITE-SCOPES
and usehttps://www.googleapis.com/auth/gmail.readonly,https://www.googleapis.com/auth/calendar.readonly
as a secret value
- Get Office 365 app credentials
- Set API application permissions OR API delegated permissions
- Create secret named
O365-TENANT-ID
and useDirectory (tenant) ID
from the app registration overview page as a secret value - Create secret named
O365-CLIENT-ID
and useApplication (client) ID
from the app registration overview page as a secret value - Optional (for application access only): Create secret named
O365-CLIENT-SECRET
and use generated client secret as a secret value - Optional (for delegated access only): Create secret named
O365-REFRESH-TOKEN
and use refresh tolken as a secret value
- Go to
til-pseudonymization-service-app
app service overview page
- Select
Configuration
in the left navigation bar - Select
Application settings
tab
- Use
til-kv
as an application settings value
- test Health check
- test Google Gmail API
- test Microsoft Graph API