DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
The Latest "Software Integration: The Intersection of APIs, Microservices, and Cloud-Based Systems" Trend Report
Get the report
  1. DZone
  2. Data Engineering
  3. Databases
  4. General Notes on Security in Azure SQL Data Warehouse

General Notes on Security in Azure SQL Data Warehouse

Read on for some basic techniques to make your Azure SQL Data Warehouse more secure, and keep cyberattackers away from your data.

Grant Fritchey user avatar by
Grant Fritchey
·
May. 10, 17 · Tutorial
Like (2)
Save
Tweet
Share
1.74K Views

Join the DZone community and get the full member experience.

Join For Free

i’m still learning about azure sql data warehouse (adw, cause i’m lazy). adw is a deceptively deep topic. initially, you think that it’s just sql server, what’s the big deal. then you start to understand the underlying architecture and things get complicated. then you begin to understand the implications of the architecture and things get downright arcane. however, i’d like to talk about some relatively easy concepts around security in your azure sql data warehouse. for lots more detail, see the excellent documentation provided by microsoft.

firewall security

the single most important aspect of security in and around azure is the fact that for the public facing aspects (and the database stuff is public facing), there is a built-in firewall. this firewall is enabled by default and actually can’t be disabled, although you can choose to completely bypass it (why you would choose this is beyond me, but you can choose to eat lead paint too, so….).

let’s say that someone knew that you had an azure sql server (the container for both azure sql database (adb, lazy again) and adw, not to be confused with an instance of the sql server boxed product) out there named “securitytestdw.” if they knew anything about azure, they’d know that the string to connect to this is “securitytestdw.database.windows.net” which gives them an attack vector of sorts. however, with a hole in the firewall, the best they get is an error stating “your client ip address does not have access to the server.” in short, they’re not getting in if you haven’t allowed for their ip address.

now, can you shoot yourself in the foot and expose your server to all ip addresses? yes.

an example of bad firewall security

however, you’d have to intentionally do this. don’t. then you avoid the problem.

login security

you have two core choices on logins. first, you have to create a sql login at the server level for both azure sql database and azure sql data warehouse. you can’t remove this or disable it (to my knowledge, and i’ve tried), so make the password a good one (and don’t lose it). you can then create other sql logins, but this is not a recommended best practice. in fact, i wouldn’t do it at all unless i was forced because of some third party product (few of which currently support azure anyway).

the next choice, the preferred choice, is to set up azure active directory. with azure ad you get all the functionality you’re used to with your local ad. further, you can federate azure ad with your local ad to control and manage the logins from within your network. you also get multi-factor authentication with azure ad. we are talking real security here. read through the documentation on setting up authentication to get it right. you can do the whole thing using powershell commands , so there’s no excuse on automating it.

auditing

auditing and threat detection are services that you pay for. they’re off by default. you can set them for the server or for individual databases. you’ll have to add storage for the audit logs. the threat detection looks for sql injection and sql injection vectors are anomalous client logins. remember, if you set this for a server, it includes all the databases under by default. you can change the databases individually through powershell, or here in the gui:

conclusion

the basics of security within azure sql data warehouse are pretty clear and easy to understand. leave that default firewall in place and only poke the holes through it that you actually need to, and you’ll be fine. get azure active directory set up so that you can use that (along with multi-factor authentication) to completely lock things down. finally, you can pay for the audit and threat detection. with all these options, you can secure your azure sql data warehouse properly.

azure sql Data warehouse security Data (computing) Database

Published at DZone with permission of Grant Fritchey, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Comparing Map.of() and New HashMap() in Java
  • MongoDB Time Series Benchmark and Review
  • Beyond Coding: The 5 Must-Have Skills to Have If You Want to Become a Senior Programmer
  • Integrating AWS Secrets Manager With Spring Boot

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: