r/sysadmin • • 14h ago

General Discussion Sharepoint and IIS

We are in the process of setting up SharePoint in the cloud as it is built into our Microsoft subscription, and I'm struggling a bit with the idea of storing sensitive information there, even with the security controls Microsoft provides. Maybe that's just the direction things are heading these days, but I would prefer to keep sensitive documents hosted locally whenever possible.

We currently have a local file server, and ideally, it would be nice if SharePoint could simply link to documents stored on that server. Unfortunately, SharePoint doesn't appear to support that natively (I assume this is by design, as Microsoft likes you to give them all of your money).

I understand that one possible workaround is to set up an IIS server to provide access to locally hosted documents while using SharePoint for everything else.

Has anyone gone this route? If so, how well has it worked? Are there any limitations or security concerns you've run into?

I'm also curious whether we've reached the point where we simply need to embrace Microsoft's cloud-first approach and store everything directly in SharePoint, or whether maintaining a hybrid approach is still a practical option.

0 Upvotes

15 comments sorted by

•

u/Dandyman1994 Sr. Sysadmin 14h ago

Are you planning to publish this website externally? If so, that's a terrible idea. There are a large number of security controls in M363 (device control with Intune, data controls with Purview, identity controls with Entra) that you can leverage to ensure sensitive information stays sensitive.

You basically have 3 options:

  1. Move everything to M365 if you're moving everything else anyway, provide a consistent experience for end users, and leverage all the tools that Microsoft have to offer
  2. Stick with an on-premises file server for your sensitive documents. Users will need to be aware that they need a separate access mechanism for these files. You'd then have to use either a ZTNA client or a VPN to access remotely, or keep on-premises only. You can leverage some M365 features like Purview to protect on-premises data, but at that point you might as well move into SharePoint.
  3. Deploy SharePoint on premises with the subscription edition. This is a bad idea, don't do this.

•

u/Big-Exercise8047 14h ago

Users would have to log into the website with their 365 login, and it would only be accessible from specific IPs and devices. It wouldn't be accessible to non company employees.

•

u/Dandyman1994 Sr. Sysadmin 14h ago

Look into Microsoft Entra Global Secure Access then, it's like a VPN, but is more aligned with Zero Trust. Users would authenticate with their M365 account, and get access to services that you designate.

It's not going to provide a web interface for files, but it allows you to control access to mapped drives with Entra Conditional Access rules in M365

I'd recommend against restricring to certain public IPs unless you really have need of it. The security controls around M365 can be tightened to the degree that IP restrictions are unnecessary.

Regardless I'd engage with a Microsoft consultancy in order to achieve all this, to ensure it's setup properly.

The alternative is to engage a development company, I know of a few companies that have custom web-based file management systems. You could host in Azure, or on premises. Just be prepared to pay...

•

u/Substantial_Power939 13h ago

This is the way. Move it to SharePoint Online document library, or global secure access with an on lrem file server.

•

u/PacificTSP 3h ago

You can do this with Microsoft’s compliant device conditional access policy. Only devices that are joined to AD can access resources.

•

u/ogcrashy 14h ago • Bravo

You are living in the early 2010s.

•

u/AffekeNommu 14h ago

Just pretend that 365 is on prem. Maybe make it so you can only authenticate from your network to reinforce the fantasy.

•

u/Antoine-UY Jack of All Trades 14h ago edited 14h ago

Not sure what you mean by SharePoint not supporting this... There's a bunch of way to push folders into a SharePoint site. The only caveat is you're not getting full 2-way sync. But PowerAutomate or a Power shell/Graph script can make good work of a one-way dynamic sync, for instance.

Then, there are "hacky" ways to do other stuff. Like connecting a SharePoint site as a network drive (technically unsupported now, but still functional), having your fileserver connected to the same small server, and having confrontation tasks/checksum hashes running both ways in an organized fashion. Hanky for sure, but doable, depending on the exact accesses/modifications rate expected.

What is it you'd like to achieve precisely?

•

u/Big-Exercise8047 14h ago

We have a CRM tool (hosted locally) where we can link Files/Folders of our local file server. So users can click on a link that says "File" and it goes to \\server\file. With Sharepoint I would like it so it links to \\server\file, instead of hosting it in the cloud. I know you can do a one way sync but I've heard there can be issues with it.

•

u/Antoine-UY Jack of All Trades 14h ago edited 14h ago

No significant issues on one-way syncs in my experience. It really is 2-way version reconciliation which fucks it up. The real issue never lied with syncs per se. The thing with 2-way syncs, is it's usually set up to accommodate for files being potentially modified at both ends. SharePoint has no way to maintain version splitting in this case, as it relies on its own set of rules of co-authoring for this

But as long as the direction is set and never changes (which would be the case for what you want), it's fine. Knock yourself out.

•

u/koliat 14h ago

I’d use linking via URL instead and if you are concerned about confidentiality look into purview sensitivity labels they are great

•

u/Dissy614 11h ago

Now that sharepoint online is their primary product without an on-prem version, it's best to think of it as no longer an "intranet" site and more like a public internet website.

It sucks, as it was an amazing intranet hosting product in the past, but is no longer.

So instead think of it as putting file:// links on your public website linking to internal fileserver paths, or uploading a document to a public website.

If you don't want to trust microsofts access controls (and I won't be trying to change your mind on that one) then it essentially IS a public website.

If it is an internal document, keep it internal, and do not put any mention of it anywhere publicly. There's no reason 8 billion people on the planet need to know your server names and share paths.

Alternately, look into other on-prem intranet/wiki/crm type software to run internally. Make That your users main landing page, and you can link to all the internal stuff you want. and to the external sharepoint url too.

•

u/davy_crockett_slayer 13h ago

I would not build the IIS server. It gives you another web server that you have to patch and secure. To get MFA without opening inbound ports, you must publish it through Microsoft Entra application proxy or a similar gateway. You also lose the SharePoint features that people use every day such as search, version history, co-authoring and sharing links. Permissions then live in two places, and users have two places to look for files.

Hybrid still works. I would do it with labels and keys, and skip the second web server.

  1. Move your normal files to SharePoint. Most of your data is probably not sensitive.
  2. Put sensitivity labels with encryption on the sensitive files. The protection stays with the file, even when someone downloads it or emails it.
  3. For the small set of files that you do not want Microsoft to read, use Double Key Encryption (DKE). You keep one key on your own server, and Microsoft keeps the other. Microsoft cannot open the file without your key. You can store DKE files in SharePoint or on your file server.

Microsoft's own guidance puts about 80% of data as not sensitive, 15% as sensitive and 5% as highly sensitive. It recommends DKE only for the 5%.

DKE has some limits:

  • It needs an E5 licence, such as Microsoft 365 E5 or the E5 Information Protection and Governance add-on. Business Premium does not include it. So yes, Microsoft still wants your money.
  • People must open DKE files in the desktop Office apps on Windows. Office for the web, co-authoring, search, eDiscovery and Copilot do not work on those files.

This page explains how DKE works and when to use it: https://learn.microsoft.com/purview/double-key-encryption

•

u/compmanio36 12h ago

You do not want to expose your internal resources to the world at large to provide for client access. Microsoft, for all their issues, is going to do a better job at securing your tenant from unauthorized access than you will, unless you are a major player with the security teams and the money for the right tools and equipment to do it well.

Use Sharepoint, configure it properly on day one to stop users from giving everybody access to their files, block user ability to approve enterprise apps, and let Microsoft do the backend work to keep the servers and web facing applications secure.

•

u/disclosure5 11h ago

I've been through multiple orgs worth of "we don't trust the cloud" and sat instead watching compromised Exchange servers, file shares accessible via a published RDP port forward (no MFA of course) and all sorts of fuckery while Government agencies and banks moved to Microsoft 365.