tirana

tirana

Let’s say, there’s a server I have access to and which belongs to a customer. I’ve set up and launched a Phoenix app on it.

Because of our agreement with a customer, I’m not obliged to provide the source code of an app. The only thing I have to do is to lauch it end ensure that it works. Besides, I have a reason to try to protect the source code.

Question: how could I a) protect, or b) make it more difficult to get access to

the source code of said application?

More concretely:
1.1) Is there a way to distribute an app in the compiled form only?

I know how to build a release manually, and I’ve done it. However, there’re so many files there in it, and I don’t know which ones are essential for an app to run, and which aren’t.

1.2) Is there a way to also obfuscate the source code? Whether it be before, during or after compilation.

I’m aware that the maximum I could do is to make it more difficult to access the source code, or understand it. rather than protect it completely. And this is fine.


P.S. My local OS-es and the one on a server are identical. Therefore, I can compile a release locally. And I can set up all the env. locally as well.

Showing Posts 1 to 10

cmo

cmo

There are tools to decompile the beam files. There are several threads around asking this same question which you might want to check out. Short answer is: no.

Could you restrict access to the location of the files somehow?

tirana

tirana OP

There are tools to decompile the beam files

That’s fine because a compiled version only on customer’s server will always be better than source code anyway. A customer may not be that tech-savvy to decompile it.

So – is it possible to have a compiled version only on a server to run an app?

How? A server belongs to a customer.

cmo

cmo

I thought you might be managing it for them.

tirana

tirana OP

In some cases I could, but I wouldn’t rely on it.

al2o3cr

al2o3cr

Technical solutions can only put minor obstacles in the way. The correct tool for this is called “contract law”, and it doesn’t involve any software changes.

If you’re still interested in putting the obstacles in, it would be useful to think through exactly what you’re aiming to prevent. For instance, just writing really poorly-structured code with confusing function names would prevent anybody from understanding but that probably isn’t what you want :stuck_out_tongue:

10
Post #5
LostKobrakai

LostKobrakai

When you build a release (e.g. using mix release) it won’t include source-code.

Kurisu

Kurisu

If I understand you correctly you don’t want a perfect solution, but just something that makes your source code opaque to someone with no technical background.

Maybe the following project will interrest you then.

https://github.com/spawnfest/bakeware/

cmo

cmo

Using Burrito could be an obstacle. It will appear as an executable that will self extract. Bakeware has been superceded by Burrito, in a sense

Kurisu

Kurisu

Thank you for sharing. :+1:

Burrrito seems also to be more actively maintained.

https://github.com/burrito-elixir/burrito

tirana

tirana OP

Alright. now it’s become clear

Where Next? Top

Trending in Questions Top

RSP87
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
nseaSeb
Hello, I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
brecabral
Documentation While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
FlyingNoodle
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews