intfiction.org

The Interactive Fiction Community Forum
It is currently Tue Jun 18, 2013 2:10 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 66 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7  Next
Author Message
PostPosted: Tue May 22, 2012 10:50 am 
Offline

Joined: Sat May 03, 2008 11:32 pm
Posts: 156
Sounds like you're reinventing Java and Silverlight.


Top
 Profile Send private message  
 
PostPosted: Tue May 22, 2012 6:04 pm 
Offline
User avatar

Joined: Wed Oct 14, 2009 4:02 am
Posts: 981
Maybe. But when we open up the sandbox of the VM we have to do something. And because it's possible that something like Vorple might one day be included in Inform 7 I'd like to come up with a solution that doesn't require the user to approve every story file they play, both because it would be annoying, and because it would train people to approve everything without thinking.

Now you could already be evil and write a game which would delete other game's data files. But web terps are a lot more vulnerable because with an iframe you could do that without the user's knowledge. (This is possibly already possible? I haven't tried.) There are other concerns too, because a malicious script could not only delete stuff, but get access to your library/play history etc and send it elsewhere on the net.


Top
 Profile Send private message  
 
PostPosted: Tue May 22, 2012 7:36 pm 
Offline

Joined: Sat May 03, 2008 11:32 pm
Posts: 156
Sure, you definitely need some kind of security system if you're going to let the game pass arbitrary code out to its host. But this is the point in the process where I'd be reconsidering whether that's worth doing, at least with a JavaScript host. I mean, if you want Java, it's right over there.


Top
 Profile Send private message  
 
PostPosted: Tue May 22, 2012 8:43 pm 
Offline
User avatar

Joined: Wed Oct 14, 2009 4:02 am
Posts: 981
No one wants java. We want html and javascript. Even davec seems to have moved away from silverlight.


Top
 Profile Send private message  
 
PostPosted: Tue May 22, 2012 9:17 pm 
Offline

Joined: Sat May 03, 2008 11:32 pm
Posts: 156
Well, I continue to be baffled by the desire to force JavaScript into roles it's unsuited for, but surely in any case there's a better alternative than reinventing the sandbox -- that sounds like the kind of thing only Bruce Schneier should do, like inventing a new encryption algorithm. Maybe come up with a set of useful external tasks and let the game just invoke them, which would have the added advantage of being platform-independent?


Top
 Profile Send private message  
 
PostPosted: Tue May 22, 2012 9:36 pm 
Offline
User avatar

Joined: Wed Oct 14, 2009 4:02 am
Posts: 981
Signing is a good solution I think, and libraries already exist: http://kjur.github.com/jsrsasign/ Just have to decide if the code footprint of such a library is acceptable. I think that one is around 10kb which is fine.


Top
 Profile Send private message  
 
PostPosted: Tue May 22, 2012 11:11 pm 
Offline
User avatar

Joined: Thu Feb 11, 2010 1:51 pm
Posts: 217
Location: Chicago, Illinois, USA
Dannii wrote:
Signing is a good solution I think, and libraries already exist: http://kjur.github.com/jsrsasign/ Just have to decide if the code footprint of such a library is acceptable. I think that one is around 10kb which is fine.


I agree with vaporware. This is the wrong direction. Any system that needs concern itself with security in this day and age is a really bad idea. Working with the constructs of the standard web is the way to go.

That being said, when I open up my portal, I'm unlikely to allow anything but image, text, and game file uploads. If someone wants to alter the JavaScript code base, they'll have to work with me on that.

I still don't see why anyone is building anything custom regarding styles. The browser has solved this (like it or not) with CSS and JavaScript and HTML. Let the author identify context and let the browser do the rest.

David C.
textfyre.com


Top
 Profile Send private message  
 
PostPosted: Wed May 23, 2012 12:29 am 
Offline
User avatar

Joined: Wed Oct 14, 2009 4:02 am
Posts: 981
Unless we deny everyone the ability to use these new features at playif.com security will be something we need to address. I want people to be able to make a game with vorple or maybe a html version of glimmr, upload it to the archive and instantly send their friends a link to iplayif.com. There is a place for curated portals, but that's not what parchment is.


Top
 Profile Send private message  
 
PostPosted: Wed May 23, 2012 1:24 am 
Offline

Joined: Sat May 03, 2008 11:32 pm
Posts: 156
Denying everyone the ability to embed arbitrary code for visitors' browsers to execute doesn't seem like such a bad idea.


Top
 Profile Send private message  
 
PostPosted: Wed May 23, 2012 2:10 am 
Offline

Joined: Tue Dec 25, 2007 10:06 am
Posts: 898
DavidC wrote:
Let the author identify context and let the browser do the rest.

This approach works fine when the context is "room header" or "emphasized text", but anything beyond that requires custom, author-provided styles.

_________________
Vorple UI libraryBeta testing siteBlog


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 66 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7  Next

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group