adplus-dvertising
Connect with us

Tech

Protecting APIs in Financial Services with Zero Trust Overlay Mesh Networks – InfoQ.com

Published

 on


Transcript

Dovholuk: We’re going to talk about protecting financial services, but we’re going to use the zero-trust overlay to do that. Usually, when I talk to people, and I say we’re going to talk about zero trust, this is what happens. Everybody is like, “I have heard everything there is about zero trust. I’m tired of it.” It’s a terrible term. It’s been abused. It’s been reused. Really, when it comes to zero trust, I think of explicit trust. What we’re doing is we really want to know who it is, is connecting to our APIs, who it is, is connecting to our services. We need to know the exact identity. Zero trust, terrible term. Why is zero trust important? Anybody see this? This came out, and my marketing guy said, “Look at this, CISA has banned remote management of network devices, unless they’re only accessible from the internet if they implement a zero-trust architecture.”

This is a guy named Philip. Philip said to me something that I’ll never forget. He said, developers don’t care about security. Why is it developers don’t care about security? Philip is not alone. If you go to Google and type it in, you’re going to see, why don’t developers care about security? Why don’t they prioritize security? You find it all over the place. I think we all know, we all care about security. It’s just, we’re busy doing other things. We’re busy actually producing products, filling up features, and completing actual tasks marked in our Jira board. Joel Spolsky, founder of Stack Overflow has a fantastic quote, “Shipping is a feature, your product must have this feature.” Don’t spend time gold plating everything, you’ve got to ship. Security is the same way. Security is also a feature, you need to start thinking of security as a feature. If you’re a VP of engineering, if you’re a product manager, product owner, give time to security, let your developers create a better, more secure infrastructure. Obviously, in the FinTech world, even more important. I am a FinTech user, I want my applications secure.

Current Network Security Setup

This is an overview of current network security. You’re going to see the classic wall and moat. Once you get behind the wall, once you get over the moat, you’re safe and secure, you are trusted. Ten years ago, 15 years ago, we were doing this all without TLS. We said, that’s fine. HTTP, FTP, whatever, nobody is going to be on my internal network. It’s safe and secure. Today, TLS everywhere, let’s start SCP, let’s stop HTTPS. Then developers we’re, “It’s hard.” How can we cert? What are we going to cert from? It’s a pain in the butt.

HTTPS Everywhere was out there. For all my mothers out there, I use the my mother rule, “If my mother can do it, then a user can do it.” HTTPS Everywhere was really cool. It was a plugin you would install on your browser. It would automatically upgrade you from HTTP to HTTPS. Such a good idea. Every browser does this now, and the Electronic Frontier Foundation got rid of it. Let’s Encrypt, also really important. Let’s Encrypt made certificates easy to obtain for all of us, legitimate third party, verifiable CAs, shipped with your operating system. Now you can use those, thankfully, due to Let’s Encrypt. Two more projects doing some interesting things, which we’ll talk about: SPIFFE/SPIRE and OpenZiti. I work for OpenZiti, but it’s an open source project, totally open source, totally free. SPIRE is interesting, because it’s a Cloud Native Computing Foundation project, and it’s graduated. Not too many of those. Guarantee you’ve heard of all of them. Kubernetes, Prometheus, you name it, there’s a bunch of them.

Overview of Zero Trust

This is what we’re going to talk about. Overview of zero trust, again. Here are some of the really important pillars of zero trust I find most relevant to this talk. The most important one is device identity. Device identity is really nice. It’s about having a strong identity deployed on every single device in your network. Then your network can make decisions based on that strong identity. Let’s take that one step further and go to workload identity. Workload fancy term for just some program running somewhere. Generally, you think of workloads running in Kubernetes, or something like lambda, some serverless type of thing. It’s just some idea of some process running somewhere. What’s really nice is now you can have many of these identities all on one machine, all local. You don’t have to have a single device identity. You can have multiple identities. Least-privilege, very important pillar of zero trust, since this says, the network knows that strong identity will not permit a nefarious attacker who gets compromised. We were talking about USBs before, don’t plug somebody’s USB into your laptop, you never know, or even cables now. If they’re not able to communicate to the target of opportunity, they can’t communicate to that target of opportunity. Continuous authorization or posture checking, here you want to make sure, “We checked it once, but did it change?” You want to know, are you on the latest patch? You want to know, do you have a certain process, usually a virus scanner running, that sort of thing. Or you want to have short-lived certificates. This is the longest path that a human can walk across the earth. This is your journey to application embedded zero trust. You’re not going to start from point A to point B, you’re going to get there after a long time. Don’t be afraid if you stop in Egypt somewhere, or you go all the way off to the Pacific Ocean. It’s a journey. It’ll take a while. Application embedded zero trust, we’ll see that in action. Hopefully, I’ll convince you that this is not just some myth and you could do it too.

Introducing SPIRE: The SPIFFE Runtime Environment

First, we’re going to look at SPIRE or SPIFFE/SPIRE. You’ll see these two words used a lot. They’re open source projects. You can go out there, get all this stuff for free. It’s a universal identity control plane for distributed systems. Radia was talking about identity. SPIFFE/SPIRE is a runtime implementation of SPIFFE looking to solve the hard process of delivering identity to workloads, to users. If you go out and look at their website, they’ll say one thing, securing microservices. Authenticating to common databases. These are all the common use cases you’re going to want: mutual TLS, strong identity for securing your APIs. SPIFFE is a set of specifications only. Here are the specifications. You can go out to that big long URL and find them or you can just go out and type SPIFFE. A few of them are important to us: the SPIFFE ID, the SVIDs, the Workload Endpoint. Those are specifications, they’re very attainable. Usually you go out, you read an RFC, and your eyes roll back in your head and you’re like, I got to click 85 other links to go through all these things. Very easy to read these specifications. I even did it. SPIFFE ID is interesting, SVIDs, we’ll see. SPIFFE ID is just a unique string. It’s the way that you identify an identity. It’ll start with SPIFFE:// and then have a trust domain associated to it. Then whatever you want after that. SVIDs, Secure Verifiable Identity Documents, basically cryptographically verifiable identities. Usually comes in the form nowadays of X.509, which is a certificate, PKI we’ve probably all heard about, and JWTs. JWT is signed document, comes in three parts.

Here’s an overview what SPIRE looks like. You’re going to have a SPIRE server, SPIRE agent and workloads. That SPIRE server is going to do one thing, it’s going to talk to the SPIRE agent, while the agent is going to talk to the SPIRE server. It does that for this one thing called node attestation. Very important. I actually heard a lady from Google talking about attestations of software during the build process, same idea. This is node attestation. It’s basically saying, is this node who I think it is? It’s all back to bootstrapping trust. The SPIRE agent needs to present something to the SPIRE server, that SPIRE server can say, yes, I verify that. SPIRE agents and workloads also do workload attestation, same thing but slightly different. In the example I’m going to show you, the workload attestation is performed by the agent itself. The workload will come online, talk to the agent, and the agent will introspect something into that workload that just came online and make a decision about the workload’s attestation and what it is able to present itself as, what its identity is. SPIRE server, few little tidbits that are relevant: the address port, the trust domain. Address and port on the underlay. Underlay an important term to remember. I’ll use the word underlay and overlay throughout. Underlay means IP address, usually. TTL is time to live. It’s how long you let something live for. Plugins, there are some plugins that you configure the SPIRE server with. Datastore. KeyManager, we’re not going to care about. The NodeAttestor we’ll take a look at. SPIRE agent has similar things, has a trust domain, has an address and port it will contact the SPIRE server on. It has this insecure bootstrap that I’m using. Anybody who’s used SPIRE is going to go, “No, he’s used insecure bootstrap.” It’s for demo and there are better ways to do it than use insecure bootstrap. You should try it out because all the code you’re going to see you’re going to be able to get from my GitHub. KeyManager, NodeAttestor, WorkloadAttestor. NodeAttestor, WorkloadAttestor are important for agents, and we’ll see those here too.

Introducing OpenZiti: Full Zero Trust Overlay Network+

We’re going to flip modes and we’re going to talk about OpenZiti. SPIRE is about delivering identities. OpenZiti is the zero-trust overlay mesh network that I work on. I’m actually a committer on the project, I’m not just a figurehead. What is an overlay network? Usually, you think of an overlay network as, you need some network so it’s most advantageous to deploy your overlay right on the open internet. You don’t have to. If you have a private network, you can use a private network too. OpenZiti will actually also install into an air-gapped environment. You can bring it someplace entirely secure. We’ll just call that our Ziti Overlay Network. We’ll put a controller on that, the controller’s job is to do authentication, authorization. When something connects to the controller, it will determine its authenticity, similar that the SPIRE server does. We’ll have some edge routers, or routers in general. These form your mesh overlay network. They talk to one another, and they talk to the ones that they’re informed to talk to. Then they’ll also talk to the controller. They’ll do that all through mutual TLS, and OpenZiti will bootstrap all of this on your behalf. That’s all done for the explicit purpose of having an edge on the left-hand side, an edge client talking to an API so that we can send data. My favorite feature of OpenZiti and the zero-trust overlay, is your server, if it has OpenZiti installed in it, has no listening ports. How is that? It’s crazy. We’ll see how that works.

Zero trust network access, this is what most people think of when they think about zero trust. I trust my private network, it’s fine. Never going to get compromised, no problems, HTTP. Obviously, it’s not great, because we have some trusted network on the left, we have some trusted network on the right, we have some targets of opportunity if we’re able to land and expand. Next level, scaling up zero trust host access. Here, you take an agent, and you install it on that local machine, and that local agent is able to intercept traffic locally, keeping it only on your host operating system, or Kubernetes, or whatever. Then teleporting it wherever you want it to go to, to the other side, and the other side could be configured to offload to localhost or a 127, something non-routable. Then you know for sure that your traffic will not be traversing a network. Application access, here’s where you take an SDK and you actually stuff it into your application, you compile it in, or there are ways to post to do it. LD_PRELOAD trick from Linux lets you basically bootstrap some libraries ahead of time. That’s probably considered application embedded too, because it’s entirely in your runtime, in your environment, in your application. All the way to the server where the server has no listening ports, and so that’s called application access. I call it zero trust application access. Then if you have a hardware root trust, you can take that one step further, get a YubiKey or something along those lines, maybe a TPM, and do your cryptography outside of the operating system itself, so like a YubiKey, for example. Now you still have a little bit of trust, because you trust some parts of the operating system.

Example Code

Let’s look at the nerd stuff now, let’s look at code. Here is where you can get the source, https://github.com/dovholuknf/qcon2023. That’s where all the source code will live. It works on Linux. SPIRE doesn’t have a Mac client, so I couldn’t do it in Mac. If you run a virtual machine, or if you’re on Windows, use WSL, and that’s where I’ll be doing. I’m going to blast through the nosecurity example. This is just a baseline, what we’re going to do. We’re going to have a nosecurity server, and we’re going to have a nosecurity client. We’re going to turn it on, and then we’re going to talk to each other. I’m going to use Go, so you’ll see Go used here. What you can see is like on line five there, we’re serving no TLS. In Go, you can serve or you can serve TLS, either way, and so we’re going to do no TLS because this has no security. We’re going to create a server on top. We’re going to create an underlay listener on some port and that’s going to be our whole first demo. That’s what we’re going to do. Go has a bunch of imports, has a bunch of constants, you can check these out. Important one here is maybe the SocketPath, you can see that’s where the domain socket that your code will actually contact the agent on. A couple of SPIFFE IDs, we’re going to make a JWT client, a JWT server. JWT will come in later on, and a few ports that we’ll just open up. Make a server, handle the server, basic Go code. Again, very approachable, simple code, you can take this and try it at home. Creating an underlay listener, all this is standard library stuff, piece of cake. Then more standard library stuff. I wrote a simple math API. Our API we’re going to be securing, is just going to operate on two inputs, input1, input2, and then take some operator and work on it. Here is what our insecure client looks like. It’s going to create a mathUrl, add the math parameters, they’re going to be query parameters. You can just use your browser if you wanted to. We’re actually going to use curl, because if you parse the fourth argument, you will see the equivalent curl statement. That’ll come up later, because I want to prove there’s no smoking mirrors, so we’re going to use a third-party app in order to use that curl. Create the mathUrl, add the math parameters. I’m just going to blow through all this, call the API. Important part about calling the API, we’re using the default HTTP client from Go, which is nice, because once you secure the default HTTP client, every request through the Go runtime will have the security applied to it.

If you look right here, I’ve already run all this stuff. It’ll start up Docker. It’ll start up a zero-trust overlay network for you, OpenZiti network for you. It’ll download bootstrap and install SPIRE, the SPIRE agent, the SPIRE server. It’ll do all that stuff for you. It’ll configure your zero-trust overlay network. If you want to inspect all this stuff, you can go ahead and inspect all of that stuff. Run the server. You see, I’m just going to multiply 10 times 2. If you’re running on Linux, make sure you quote that, otherwise you’ll glob and have a bad time. You’ll get a result of 20. That’s what we would expect to see from our math service. If curl will help me out, I can run curl2, runs in the subshell because the API doesn’t have a new line at the end, so I got to echo it till I get a new line. That’s why it’s wrapped in a subshell. We haven’t done a darn thing to make this thing secure yet, so let’s do that. Secured by SPIRE. We’ll start with SPIRE. We’re going to take that 18080 port, no TLS, and we’re going to turn it into a mutually secured TLS endpoint, all in an hour. We already have our SPIRE server running. We already have our SPIRE agent running. That SPIRE agent needed to be configured, and the server needs to be configured too. When you look at that big, long script of bash that runs, you’ll see the important parts here are the bind address that binds on all interfaces, because I don’t know what your IP is. Then whatever your bind port is, this case, 8600, that’s where SPIRE server will be contacted on. We’re going to create a trust domain. We’re going to configure SPIRE with a JWT issuer, so that the OpenZiti runtime when we get there will know who issued the identity.

Important part of the server configuration, that NodeAttestor, we’re going to use the join_token plugin. If you look at the plugins that SPIRE supports, there’s a bunch of them. There’s AWS, GCP, Kubernetes is a big one. You’ll find SPIRE in Kubernetes a lot. Pay attention when you go to the doc, there’s the doc page, because there are server NodeAttestors, and there are agent NodeAttestors, and if you confuse the two, you will be quite confused as to why your configuration is not working and why SPIRE is crashing on you. We’re going to use the join_token. It’s the simplest example, but there are many examples that you can pull from. The agent is going to be configured similarly. We’ll tell it what its trust domain is, where to contact the SPIRE server, what port, and then that insecure bootstrap I mentioned before. Then, also, to configure the join_token in the SPIRE agent, so that when the SPIRE agent comes online, it can present that token back. Then we’re going to use the WorkloadAttestor of Unix. This is really cool. Also, discover workload path equals true. What that will do is it will actually inspect the path of the runtime that’s running, and based on where the path is, it will give you a certain kind of identity. When you try to debug this, if you try to run the server and the client as you, you’ll get the same identity. That’s not what you want. You want two different identities. Again, we’re going to use the join_token NodeAttestor. You can read all about these things, a bunch of agent NodeAttestors to pull from too.

We configured a SPIRE server by generating a token, we gave it the SPIFFE ID that we want it to be known by. That says, ok, this is the token to use, present this token back to me. Then when we run the SPIRE agent, we’ll use that particular token, and that’s how trust is bootstrapped. There are better mechanisms, again, only an hour. Now we’ve got a SPIFFE ID on our agent, we’ve got a listening 8600, and we’ve got a SPIRE server working. Now we’re going to go through the code to authorize those workloads. Again, that’s our goal, so that we can have a client SVID, a SPIFFE Verifiable Identity Document presented from the client to the server, and the server back again, all for the purpose of mutual TLS. Because if either of them don’t match up, you’re having no access, very important. We go through SPIRE server. We create an entry, we’re going to give it a JWT server as the SPIFFE ID, tell it where the parent is. Basically, this homes the identity to that particular agent. You can add DNS options as well to it, which is neat. If you want that server to be known by a certain DNS name, or name server entry, you can do it that way. Also, you can use top-level domains that don’t exist like .ziti. Then we’re going to use that cool Unix path selector to actually select the SPIRE server based on its path. When you run compile and run, it will come down and it will put that file in that exact location in your /temp folder. We’re then going to use the Unix WorkloadAttestor. It’s an eye chart, there we go. In the Unix path, you can choose what the Unix path is. There are lots of selectors that you can give SPIRE this information to, one of which, for example, is the SHA-256. If you know the exact path and you know the exact SHA, you can give those two selectors to SPIRE, and SPIRE can make a better decision about whether or not that identity is the one it’s supposed to be.

Now we have the server side working, now we’re going to look at some client-side code. Here’s what the code used to look like. There’s what the code looks like now. We haven’t added a bunch of lines of code. I’m going to hand wave a little bit, because there’s a couple of functions in here that I made, but we’ll see those. We create that server, again. We set up some options, which only go through to tell your runtime where to find the SPIRE agent. Then we configure that runtime for mutual TLS. We pass the HTTP server to a function I wrote called configure for mutual TLS. That’s all for the explicit purpose of serving TLS. Now we have TLS delivered, which is nice. As a developer, what have I done? I’ve added 50 lines of code maybe. Here’s what configure for mutual TLS looks like. It just calls workloadapi, which is a Go SPIFFE library. I don’t know if they have Python and all kinds of other libraries, I just use Go. Then it will call client RequireFromString, so you give it a SPIFFE string, a SPIFFE ID string. It says, now this is a SPIFFE ID. Then important down there, configure mutual TLS server config, TLS authorize ID of client ID. Only SPIFFE IDs that show up with that SPIFFE ID, only clients that show up with a certificate that is of that SPIFFE ID can actually contact and communicate to your service. Then you configure the server and you’re done, and now we’re serving TLS. Client looks almost the same. We’re going to make the mathUrl, but this time we’re going to use a secure port, so that way we don’t have port conflicts. We’re going to use HTTPS instead of HTTP, still listening on localhost, localhost. Set up at options. Then we’ll make this big long function. Go usually likes short functions, but I want one that actually makes sense, so SecureDefaultHttpClientWithSpireMTLS. That’s what that looks like. Also, 15 lines of real code here. Anybody who’s looked at Go knows the if error pattern. This creates a mutual TLS transport, and then a X.509 source is added to that transport in order to configure the whole thing for TLS. We’re going to look at that code later if we want.

In order to have SPIFFE servers, SPIFFE client, all be mutual TLS, so now we should be able to see this happen. Run the server. We obviously should get the same results, so it shouldn’t be all that spectacular. One of the things that is neat is if you look at the curl down here, notice I had to add a cert and a key to my curl. Let me run that curl statement, and we’ll see what happens if I run it. It should succeed. It does succeed, great. If we come up, and we delete off the cert, and make sure we’re not playing any games here, delete. We get no result. Also, notice that the server tells you, “That client did not provide a certificate.” Pretty cool, server has already authenticated your client, 50 lines of legitimate code. You would have to write that code in order to secure your services with mutual TLS with SPIRE.

What do we do? We deployed a SPIRE server, we deployed a SPIRE agent, modified three lines of the server code, five lines of the client-side code, and we added mutual TLS to our solution. We have end-to-end encryption. Because it’s mutual TLS, you know that the server is actually the one that is presenting that SPIFFE ID. HTTP got to be a little careful, because there are some tricks that you could play in there, and somebody else could obtain your certificate if they had a valid SPIFFE ID, but let’s assume that they don’t. You got end-to-end encryption. You have implicit attestation by having the SPIRE agent deliver that certificate to the client and to the server, which for me as a developer was the best part, or mutual TLS was maybe the best part. I got that basically for free. I have short-lived automatic cert rotation, all by just doing that. That’s pretty cool stuff.

Server Secured by OpenZiti

We’re going to look at the same sort of thing but with OpenZiti. OpenZiti, same sort of setup. What we’ll have is we’ll have a router in play, that middle thing, and we’ll have a controller in play. That’ll be useful because the router is what’s going to have a listening port, the server application will not have a listening port. If you put that router somewhere in the cloud, nobody would ever know that you were talking locally to a service that was running here talking to here, because it goes up and through that router in the sky, or a local or whatever. Controller is also available for authorization and authentication.

OpenZiti has a bootstrapping trust process, it looks like this. Now we’re going to actually configure the OpenZiti overlay. To do that, we’re going to use a JWT. Here in Ziti land, we’re going to create an external JWT signer. That external JWT signer will have a JWKS endpoint, that’s how Ziti is going to be able to validate the JWT that is provided back to OpenZiti in order to prove that connection’s identity. It’s going to also require an audience. The JWT spec says, if you’re sending this to somebody else for verification, the audience should be filled in. If you don’t fill in the audience, then you must reject the JWT. You need to fill out that audience, and that’s where the audience comes from. Once we have an external JWT signer created, we’re then going to associate that signer to an authentication policy. Very flexible. OpenZiti is structured so you can have multiple authentication policies. In this case, we’re going to say the primary authentication that is allowed is a JWT, so when the JWT shows up, what’s the signer that’s going to be used by? Use that signer, use that JWKS endpoint, verify that JWT. We’re then going to make more identities. These are OpenZiti identities, and so those identities are part of the overlay network itself. We’re going to associate the external ID, that SPIFFE ID to each identity, and we’re going to make an authentication policy, it’s associated to the identity as well. Again, very flexible. Now those identities can be verified by JWTs, specified and provided by SPIRE. That’s what we’ll see.

We’ll set up some configuration stuff, this is OpenZiti-ism, it’s got an intercept involved. Also notice, cool part of OpenZiti, totally fabricated DNS names. You can have totally private DNS. Openziti.ziti is what I’m going to use. Then we’re going to make one for SPIRE and OpenZiti. Then we’ll see OpenZiti and SPIRE together, also totally fabricated DNS. Then, OpenZiti, one more layer of security, you have to authorize these identities for which services they’re able to talk to. The demo services are going to be able to be bound or served by demo servers. The clients will be bound or served by demo clients. Client code, this is what it used to look like, here’s what it looks like now. Not a whole lot more code, same sort of thing. This time, what’s different is we’re going to fetch a JWT from SPIRE. Now SPIRE is providing the JWT for OpenZiti. OpenZiti will then create an overlay listener or an OpenZiti listener. That’s nice because we’ll have no port, but we’re going to serve. Where’s our TLS? That’s cool. Don’t worry about it. OpenZiti provides end-to-end encryption, so you don’t need to serve TLS. You can if you want to, but you don’t have to. You still have end-to-end encryption, it’s not mutual TLS: kind of the same, kind of different. The client looks very similar. We have the workloadapi, WithClientOptions. We have the CreateMathUrl. The client also fetches a JWT and uses that JWT to secure itself. Still listening on HTTP, but it’s cool because we have end-to-end encryption. Then also notice, totally fabricated URL, I made up openziti.ziti.

If we go in here, and we look at the JWT, where it’s used, you’ll see that it’s used in here, when we create a ZitifiedTransport, which is all an SDK option that you would get from OpenZiti. Here, we’re making our new credentials, we’re pulling down our CA pool, or you can provide your own CA pool if that’s what you prefer. Then we’ll use all those things in order to authenticate. We’ll do a context authenticate. Then the ziti.DefaultClientCollection.Add, that’s the magic that lets the default HTTP client find openziti.ziti, and pass that traffic properly. Then we’ll make a ZitifiedTransport, and associate that transport to the HTTP server. That’s what we’ll end up doing. We’ll see that in action, too. There’s an important point in here, and we’ll see this happen. Of course, you notice it’ll actually work without OpenZiti. If you want it to work, you need to provision that identity. We have that server running. If I do an ss -lntp, and pipe that to grep for 18000 and something. I’m going to do a sudo on this too. It’s not 18082, which is what the port’s supposed to be. That’s a whole different server that’s running. It’s not running on 18082. There’s actually no server running. Down here, if I try to do this curl, which it says, of course you know this will not work. This actually will not work, there is nothing to respond to. What I can do instead is I can go back over to my OpenZiti tunneler, which is a client that is used to get yourself onto the OpenZiti overlay if you are not application embedded, then I can add an identity. Hopefully, it hasn’t timed out. That’s over here. You’re calling temp local Docker user. When that’s done, I should see a local Docker user, and it’s got two services. Now my curl statement, it works. Now I’m demonstrating that zero trust host access. On the host side, my client side, I have a tunneler that is allowing me to tunnel across, in this case, locally, to my server, which has no listening ports. No listening ports, that’s amazing. There’s our demo. Now we have no listening ports.

Questions and Answers

Participant: Really big messages, big work, so everything has to go through the tunnel?

Dovholuk: Everything has to go through the tunnel in this zero-trust overlay network.

Participant: That would mean more [inaudible 00:33:50], latency.

Dovholuk: It definitely is going to impact your latency. On top of that, end-to-end encryption is going to add yet more latency. Sometimes I know, some FinTech stuff doesn’t even use TLS anymore. It’s just a trusted network, and that’s how it’s going to be. That’s not the place to port OpenZiti in. OpenZiti is where you can’t allow for a device or a service to become compromised through side channel attacks, Log4Shell type stuff. That’s where OpenZiti is much more important. Your phone app that goes from your phone to wherever the server is, it takes your application entirely offline, can’t be DoSed, that sort of stuff.

No listening ports is my favorite piece of OpenZiti. Ubiquitous connectivity is another amazing feature of this. You have basically an invisible tunnel that goes from wherever to wherever. I’ve run Kubernetes minikube on my local computer, and given somebody an identity and had them connect to my minikube from their house, all without exposing any ports through my own firewall. That stuff is crazy. The key here is we’re also authorizing before connecting. Before, every time I did a mutual TLS connection, the server noticed and responded and said, no, it didn’t work. If there happens to be a zero day or something goes wrong with that, you could have potential problems there. Log4Shell was one of the ones that was relatively impacted by that sort of zero day. Now you’re authorizing before connect. You can’t even send packets to the destination server without showing up onto the OpenZiti overlay network, without being authorized, without being authenticated as well. Authentication is not sufficient, you must also be authorized. That’s the OpenZiti demo I can give.

The cool thing about the demo is obviously with mutual TLS, you can add mutual TLS to your particular solution, as well as OpenZiti, so you can have mutual TLS provide its identity from SPIRE, as well as OpenZiti overlay network providing your authorize before connect, and giving the best of both worlds, if that’s the sort of thing that you’re into.

You can go out and learn about SPIRE and SPIFFE at spiffe.io. It’s also on GitHub. Openziti.io also brings you there, github.com/openziti/ziti.

There’s some cool other tech that OpenZiti produces called BrowZer. It’s like dripping wet type stuff. If you were to go to this URL and plop in your email address, what will happen is I’ll provision an OpenZiti identity using an ngrok. zrok is an ngrok-esque competitor. zrok is very similar to ngrok, it provides very easy access publicly to something that is shared privately. Here, running on my local laptop, that process I had mentioned up at the top right there, is actually the server that will be listening. What will happen is it’ll provision an identity on my OpenZiti overlay, but then uses some new tech called BrowZer. BrowZer is really neat because BrowZer bootstraps zero trust in your actual browser without installing a client, which seems like magic and works like magic. Then, if you do that whole thing, you’ll get the Docker Whale down there, which is running somewhere up in VPC land in Amazon.

See more presentations with transcripts

Adblock test (Why?)

728x90x4

Source link

Continue Reading

Tech

Ottawa orders TikTok’s Canadian arm to be dissolved

Published

 on

 

The federal government is ordering the dissolution of TikTok’s Canadian business after a national security review of the Chinese company behind the social media platform, but stopped short of ordering people to stay off the app.

Industry Minister François-Philippe Champagne announced the government’s “wind up” demand Wednesday, saying it is meant to address “risks” related to ByteDance Ltd.’s establishment of TikTok Technology Canada Inc.

“The decision was based on the information and evidence collected over the course of the review and on the advice of Canada’s security and intelligence community and other government partners,” he said in a statement.

The announcement added that the government is not blocking Canadians’ access to the TikTok application or their ability to create content.

However, it urged people to “adopt good cybersecurity practices and assess the possible risks of using social media platforms and applications, including how their information is likely to be protected, managed, used and shared by foreign actors, as well as to be aware of which country’s laws apply.”

Champagne’s office did not immediately respond to a request for comment seeking details about what evidence led to the government’s dissolution demand, how long ByteDance has to comply and why the app is not being banned.

A TikTok spokesperson said in a statement that the shutdown of its Canadian offices will mean the loss of hundreds of well-paying local jobs.

“We will challenge this order in court,” the spokesperson said.

“The TikTok platform will remain available for creators to find an audience, explore new interests and for businesses to thrive.”

The federal Liberals ordered a national security review of TikTok in September 2023, but it was not public knowledge until The Canadian Press reported in March that it was investigating the company.

At the time, it said the review was based on the expansion of a business, which it said constituted the establishment of a new Canadian entity. It declined to provide any further details about what expansion it was reviewing.

A government database showed a notification of new business from TikTok in June 2023. It said Network Sense Ventures Ltd. in Toronto and Vancouver would engage in “marketing, advertising, and content/creator development activities in relation to the use of the TikTok app in Canada.”

Even before the review, ByteDance and TikTok were lightning rod for privacy and safety concerns because Chinese national security laws compel organizations in the country to assist with intelligence gathering.

Such concerns led the U.S. House of Representatives to pass a bill in March designed to ban TikTok unless its China-based owner sells its stake in the business.

Champagne’s office has maintained Canada’s review was not related to the U.S. bill, which has yet to pass.

Canada’s review was carried out through the Investment Canada Act, which allows the government to investigate any foreign investment with potential to might harm national security.

While cabinet can make investors sell parts of the business or shares, Champagne has said the act doesn’t allow him to disclose details of the review.

Wednesday’s dissolution order was made in accordance with the act.

The federal government banned TikTok from its mobile devices in February 2023 following the launch of an investigation into the company by federal and provincial privacy commissioners.

— With files from Anja Karadeglija in Ottawa

This report by The Canadian Press was first published Nov. 6, 2024.

The Canadian Press. All rights reserved.

Source link

Continue Reading

Health

Here is how to prepare your online accounts for when you die

Published

 on

 

LONDON (AP) — Most people have accumulated a pile of data — selfies, emails, videos and more — on their social media and digital accounts over their lifetimes. What happens to it when we die?

It’s wise to draft a will spelling out who inherits your physical assets after you’re gone, but don’t forget to take care of your digital estate too. Friends and family might treasure files and posts you’ve left behind, but they could get lost in digital purgatory after you pass away unless you take some simple steps.

Here’s how you can prepare your digital life for your survivors:

Apple

The iPhone maker lets you nominate a “ legacy contact ” who can access your Apple account’s data after you die. The company says it’s a secure way to give trusted people access to photos, files and messages. To set it up you’ll need an Apple device with a fairly recent operating system — iPhones and iPads need iOS or iPadOS 15.2 and MacBooks needs macOS Monterey 12.1.

For iPhones, go to settings, tap Sign-in & Security and then Legacy Contact. You can name one or more people, and they don’t need an Apple ID or device.

You’ll have to share an access key with your contact. It can be a digital version sent electronically, or you can print a copy or save it as a screenshot or PDF.

Take note that there are some types of files you won’t be able to pass on — including digital rights-protected music, movies and passwords stored in Apple’s password manager. Legacy contacts can only access a deceased user’s account for three years before Apple deletes the account.

Google

Google takes a different approach with its Inactive Account Manager, which allows you to share your data with someone if it notices that you’ve stopped using your account.

When setting it up, you need to decide how long Google should wait — from three to 18 months — before considering your account inactive. Once that time is up, Google can notify up to 10 people.

You can write a message informing them you’ve stopped using the account, and, optionally, include a link to download your data. You can choose what types of data they can access — including emails, photos, calendar entries and YouTube videos.

There’s also an option to automatically delete your account after three months of inactivity, so your contacts will have to download any data before that deadline.

Facebook and Instagram

Some social media platforms can preserve accounts for people who have died so that friends and family can honor their memories.

When users of Facebook or Instagram die, parent company Meta says it can memorialize the account if it gets a “valid request” from a friend or family member. Requests can be submitted through an online form.

The social media company strongly recommends Facebook users add a legacy contact to look after their memorial accounts. Legacy contacts can do things like respond to new friend requests and update pinned posts, but they can’t read private messages or remove or alter previous posts. You can only choose one person, who also has to have a Facebook account.

You can also ask Facebook or Instagram to delete a deceased user’s account if you’re a close family member or an executor. You’ll need to send in documents like a death certificate.

TikTok

The video-sharing platform says that if a user has died, people can submit a request to memorialize the account through the settings menu. Go to the Report a Problem section, then Account and profile, then Manage account, where you can report a deceased user.

Once an account has been memorialized, it will be labeled “Remembering.” No one will be able to log into the account, which prevents anyone from editing the profile or using the account to post new content or send messages.

X

It’s not possible to nominate a legacy contact on Elon Musk’s social media site. But family members or an authorized person can submit a request to deactivate a deceased user’s account.

Passwords

Besides the major online services, you’ll probably have dozens if not hundreds of other digital accounts that your survivors might need to access. You could just write all your login credentials down in a notebook and put it somewhere safe. But making a physical copy presents its own vulnerabilities. What if you lose track of it? What if someone finds it?

Instead, consider a password manager that has an emergency access feature. Password managers are digital vaults that you can use to store all your credentials. Some, like Keeper,Bitwarden and NordPass, allow users to nominate one or more trusted contacts who can access their keys in case of an emergency such as a death.

But there are a few catches: Those contacts also need to use the same password manager and you might have to pay for the service.

___

Is there a tech challenge you need help figuring out? Write to us at onetechtip@ap.org with your questions.

Source link

Continue Reading

Tech

Google’s partnership with AI startup Anthropic faces a UK competition investigation

Published

 on

 

LONDON (AP) — Britain’s competition watchdog said Thursday it’s opening a formal investigation into Google’s partnership with artificial intelligence startup Anthropic.

The Competition and Markets Authority said it has “sufficient information” to launch an initial probe after it sought input earlier this year on whether the deal would stifle competition.

The CMA has until Dec. 19 to decide whether to approve the deal or escalate its investigation.

“Google is committed to building the most open and innovative AI ecosystem in the world,” the company said. “Anthropic is free to use multiple cloud providers and does, and we don’t demand exclusive tech rights.”

San Francisco-based Anthropic was founded in 2021 by siblings Dario and Daniela Amodei, who previously worked at ChatGPT maker OpenAI. The company has focused on increasing the safety and reliability of AI models. Google reportedly agreed last year to make a multibillion-dollar investment in Anthropic, which has a popular chatbot named Claude.

Anthropic said it’s cooperating with the regulator and will provide “the complete picture about Google’s investment and our commercial collaboration.”

“We are an independent company and none of our strategic partnerships or investor relationships diminish the independence of our corporate governance or our freedom to partner with others,” it said in a statement.

The U.K. regulator has been scrutinizing a raft of AI deals as investment money floods into the industry to capitalize on the artificial intelligence boom. Last month it cleared Anthropic’s $4 billion deal with Amazon and it has also signed off on Microsoft’s deals with two other AI startups, Inflection and Mistral.

The Canadian Press. All rights reserved.

Source link

Continue Reading

Trending