Giter Club home page Giter Club logo

Comments (6)

erasmus990 avatar erasmus990 commented on May 28, 2024 1

Epic Games' Technical Account Management team has indicated that it is no issue for this information (I would imagine the EncryptionKey is an exception) to be available to users, provided that your Client Policy is configured correctly.


My open question to their Service Delivery team was as follows:

What is the sensitivity level of information like ClientId-ClientSecret (ClientCredentials), SandboxId, ProductId, EncryptionKey, etc. that would be used by Auth and Platform interfaces and so forth? I would like to use the official plugin recommended here: https://dev.epicgames.com/en-US/news/epic-online-services-releases-plugins-for-unity-and-unreal-engine , but the current implementation requires leaving all of this information exposed to users in both a JSON file and within its own logs. Is leaving all of this information exposed acceptable if we customize our Client Policy for the Game Client appropriately or use other mitigating measures? Or is there no reason to worry about this?


Their response clearly instructed that I should keep the ClientSecret under "lock and key", but was worded in such a way that I suspected might have been referring to the BPT or something else that could readily make use of ClientSecretEnvVar, so I rephrased my question:

My question was specific to the EOS plugin I linked above, which was: https://dev.epicgames.com/en-US/news/epic-online-services-releases-plugins-for-unity-and-unreal-engine

The instructions for which can be found here: https://github.com/PlayEveryWare/eos_plugin_for_unity

The plugin, as several github commenters have called out, leaves the ClientSecret (I think we are talking about the same thing here? https://dev.epicgames.com/docs/services/en-US/Glossary/index.html#D?term=ClientSecret ) exposed to the world in a JSON file, as well as the bulleted pieces of data below. Furthermore, as the plugin runs, all of the following data is logged into Unity's player.log file.

ProductName
ProductVersion
ProductID
SandboxID
DeploymentID
ClientSecret
ClientID
EncryptionKey

If you indeed advocate keeping ClientSecret under lock and key, and we are talking about the same thing, then I am very confused about Epic's recommendation about this plugin and its usage. I hope I am just missing something. I tried working around the plugin's need for this JSON file, but it proved to require an amount of effort (and possible future maintenance) that I do not believe is reasonable.


My question was then passed to one of their TAMs, and their response was:

It is expected that users will have access to the EOS Client ID and Client Secret (but not your BPT Client ID and Client Secret!) I recommend customizing the Client Policy with this in mind. Per the Client Credentials (https://dev.epicgames.com/docs/services/en-US/DevPortal/ClientCredentials/index.html) page, this should be handled as an untrusted client. Partners who need to ensure client security to perform certain operations will typically create separate trusted clients that they manage on their dedicated servers.


I am waiting on a follow-up clarification regarding the EncryptionKey. I hope this helps/reassures someone.

from eos_plugin_for_unity.

erasmus990 avatar erasmus990 commented on May 28, 2024 1

Epic Games' Technical Account Management team has indicated that it is no issue for this information (I would imagine the EncryptionKey is an exception) to be available to users, provided that your Client Policy is configured correctly.

My open question to their Service Delivery team was as follows:

What is the sensitivity level of information like ClientId-ClientSecret (ClientCredentials), SandboxId, ProductId, EncryptionKey, etc. that would be used by Auth and Platform interfaces and so forth? I would like to use the official plugin recommended here: https://dev.epicgames.com/en-US/news/epic-online-services-releases-plugins-for-unity-and-unreal-engine , but the current implementation requires leaving all of this information exposed to users in both a JSON file and within its own logs. Is leaving all of this information exposed acceptable if we customize our Client Policy for the Game Client appropriately or use other mitigating measures? Or is there no reason to worry about this?

Their response clearly instructed that I should keep the ClientSecret under "lock and key", but was worded in such a way that I suspected might have been referring to the BPT or something else that could readily make use of ClientSecretEnvVar, so I rephrased my question:

My question was specific to the EOS plugin I linked above, which was: https://dev.epicgames.com/en-US/news/epic-online-services-releases-plugins-for-unity-and-unreal-engine
The instructions for which can be found here: https://github.com/PlayEveryWare/eos_plugin_for_unity
The plugin, as several github commenters have called out, leaves the ClientSecret (I think we are talking about the same thing here? https://dev.epicgames.com/docs/services/en-US/Glossary/index.html#D?term=ClientSecret ) exposed to the world in a JSON file, as well as the bulleted pieces of data below. Furthermore, as the plugin runs, all of the following data is logged into Unity's player.log file.

ProductName
ProductVersion
ProductID
SandboxID
DeploymentID
ClientSecret
ClientID
EncryptionKey

If you indeed advocate keeping ClientSecret under lock and key, and we are talking about the same thing, then I am very confused about Epic's recommendation about this plugin and its usage. I hope I am just missing something. I tried working around the plugin's need for this JSON file, but it proved to require an amount of effort (and possible future maintenance) that I do not believe is reasonable.

My question was then passed to one of their TAMs, and their response was:

It is expected that users will have access to the EOS Client ID and Client Secret (but not your BPT Client ID and Client Secret!) I recommend customizing the Client Policy with this in mind. Per the Client Credentials (https://dev.epicgames.com/docs/services/en-US/DevPortal/ClientCredentials/index.html) page, this should be handled as an untrusted client. Partners who need to ensure client security to perform certain operations will typically create separate trusted clients that they manage on their dedicated servers.

I am waiting on a follow-up clarification regarding the EncryptionKey. I hope this helps/reassures someone.

Their team's most recent response on the EncryptionKey being left exposed:

"As the Encryption Key is stored client-side, it is expected that players would be able to obtain its value even if steps were taken to obfuscate it. However, it is worth noting that the Encryption Key is not the sole component used in the encryption of data stored using the Player Data Storage feature."

from eos_plugin_for_unity.

andrew-hirata-playeveryware avatar andrew-hirata-playeveryware commented on May 28, 2024 1

Quick summary: Those keys are not as 'secret' as one might assume, and it's somewhat safe to have them in the open. They have to be in StreamAssets so that the GfxPluginNativeRender can access them before all of Unity has been bootstrapped so that the Plugin can hook all the appropriate things before the first graphics call by the Unity engine.

from eos_plugin_for_unity.

nk-rakanishu avatar nk-rakanishu commented on May 28, 2024

We're also concerned about this, seems like a fairly big security hole.

from eos_plugin_for_unity.

TheSLAP avatar TheSLAP commented on May 28, 2024

Difficult to move forward with this plugin as it stands currently. Another vote here to change how this is resolved.

from eos_plugin_for_unity.

Menyus777 avatar Menyus777 commented on May 28, 2024

We're also concerned about this, seems like a fairly big security hole.

For untrusted clients this should not be a problem. The way you limit the untrusted clients authorities is via the client settings. (Remember EOS can be used by trusted BE services too, where indeed these information would be security sensitive. However, those shall be run in isolated environments anyway.)

from eos_plugin_for_unity.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.