<kentonv>
I can see the argument for secrets in usernames. Capability-based security calls for using a single value both to identify a resource and authorize access. So how do we shoehorn it into legacy username/password systems? Authorizing based on username alone is odd, but conversely routing based on password is also odd. But as a practical matter, it's usually best to avoid putting secrets into fields that aren't usually expec
<kentonv>
ted to be secrets.
<tdsmith>
Hi #sandstorm! Is Sandstorm/Oasis a useful platform for hosting i.e. IRC logging bots, like botbot or pmxbot? I worry that the bot will be autokilled and there will be gaps in logs; is that a valid worry? (Or, optimistically!, has this already been done in a way that I can leverage for #machomebrew?)
<tdsmith>
(e.g.*, not i.e., oops)
<kentonv>
tdsmith: right now, you can't host an IRC bot on Oasis because apps can't open arbitrary network connections for security reasons. We plan to improve on that through the concept of "drivers", which would allow apps to use specific protocols in a secure way
<zarvox>
While we do have a concept of wakelocks, to allow for backgrounding, we don't have a great story quite yet for "always on" grains, in that if the server stops, there's no way to get the grain running on its own without something outside of Sandstorm pinging it.
<kentonv>
there is an API by which an app can request that it not be killed, FWIW. Of course, we will eventually implement metering of compute usage so that people don't run bitcoin miners on Oasis. :)
<kentonv>
that too
<tdsmith>
okay! brilliant, thanks.
neynah has joined #sandstorm
neynah has quit [Client Quit]
<tdsmith>
i was optimistic about getIpNetwork in hack-session.capnp but I guess the attached comment ("If the owner of the grain calling this is not an admin, then this will raise an exception") refers to an admin of the Sandstorm instance (here, an admin of Oasis)?
aldeka has quit [Remote host closed the connection]
ocdtrekkie has quit [Remote host closed the connection]
<zarvox>
You can also use the Powerbox to request an IpNetwork capability, which the grain could save a reference to and restore for use even if the current session is not for an admin user
aldeka has joined #sandstorm
ocdtrekkie has joined #sandstorm
<zarvox>
Right now the only thing that does this is a test app from our integration test suite, but that might give you a nudge in the right direction: https://github.com/zarvox/sandstorm-test-python
<zarvox>
Admittedly there are a bunch of moving parts, and we haven't written developer docs for this, so the experience is likely to be a bit rocky. But if you still want to give it a go, I can answer questions as best I can. :)
<maurer>
kentonv: In StructReader (layout.h) it uses BitCount to represent the data size. In a comment, it says this is to support struct lists encoded with less than a word per element. Looking at the composite list pointer type, it says it uses a tag word structured like a struct pointer. Struct pointers can only specify data sections in whole words. What is going on here?
<maurer>
Is this for reading legacy structs?
<maurer>
(I'm trying to actually write canonicalization code and it seems like checking truncation for a non-word-size-multiple data section would be kind of confusing)
<kentonv>
it can happen when you have a list of structs
<kentonv>
maurer: although bit-width structs are no longer supported. The smallest allowed size is bytes.
<maurer>
kentonv: OK, so from the canonicalization standpoint, I can check that the data size is a multiple of word size, and if it is not, reject?
<kentonv>
yeah, in order to make canonicalization possible, we deprecated this "efficient packing" of struct lists
xet7 has quit [Ping timeout: 276 seconds]
OOCoder has joined #sandstorm
neynah has joined #sandstorm
xet7 has joined #sandstorm
xet7 has quit [Ping timeout: 240 seconds]
prettyvanilla_ has joined #sandstorm
prettyvanilla has quit [Ping timeout: 248 seconds]
xet7 has joined #sandstorm
xet7 has quit [Quit: Leaving]
asmyers has quit [Ping timeout: 244 seconds]
aldeka has quit [Remote host closed the connection]
ocdtrekkie has quit [Remote host closed the connection]
<OOCoder>
fyi, setting subname/host is not working using the settings suggested by the ghost app.
<OOCoder>
i keep getting the following message: Error looking up DNS TXT records for host "blog.oocoder.tech": queryTxt ENOTFOUND
<OOCoder>
Also, The URL redirect works fine from namecheap.
<OOCoder>
Another question, have anybody tried to replace the theme of ghost via external files? I tried to import the odin them from github into ghost but I don't see an option for it.
<kentonv>
OOCoder: It looks like you haven't set the TXT record as required in the instructions. sandstorm-www.blog.oocoder.tech needs a TXT record with the text "6nm7rfnnritwu98kjfe8" (without quotes)
<kentonv>
OOCoder: unfortunately adding themes currently doesn't work since as of the version of Ghost we last packaged there was no UI to import themes -- it required shell access, which Sandstorm doesn't provide. We really should add our own UI for this but haven't had the time. :/ Patches welcome, of course.
<OOCoder>
thanks kentonv, but I did added it like that. Are there some file logs I can look at?
<OOCoder>
Oh I c
<kentonv>
OOCoder: Hmm, I tried doing `dig -t txt sandstorm-www.blog.oocoder.tech` and I am not seeing a TXT record.
jadewang has quit [Remote host closed the connection]
<maurer>
kentonv: Is there an API for pretty-printing capnproto messages without a schema? I'm trying to debug my canonicalization test cases, which I wrote the representation for by hand, and are probably not what I think they are
<kentonv>
maurer: no, but you could probably whip something up pretty quick based on Any{Pointer,Struct,List}.