Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Oct 11 12:39
    jaytaph opened #214
  • Oct 11 10:49

    jaytaph on master

    (compare)

  • Oct 11 10:49

    jaytaph on main

    Redoc (#34) * Added redoc depl… (compare)

  • Oct 11 10:46
    jaytaph opened #213
  • Oct 11 10:45
    jaytaph opened #212
  • May 12 12:19

    jaytaph on copyright-year-update

    (compare)

  • May 12 12:19

    jaytaph on main

    Updated copyright year Merge pull request #211 from bi… (compare)

  • May 12 12:19
    jaytaph closed #211
  • May 12 12:12
    coveralls commented #211
  • May 12 12:12
    coveralls commented #211
  • May 12 12:09
    jaytaph closed #209
  • May 12 12:09
    jaytaph commented #209
  • May 12 12:09
    sonarcloud[bot] commented #211
  • May 12 12:08
    jaytaph opened #211
  • May 12 12:08

    jaytaph on copyright-year-update

    Updated copyright year (compare)

  • May 12 12:06

    jaytaph on main

    (compare)

  • May 12 12:00

    jaytaph on ci-flow

    (compare)

  • May 12 12:00

    jaytaph on develop

    Fixing to a specific addlicense… documenting 1.17 requirement Merge pull request #210 from bi… (compare)

  • May 12 12:00
    jaytaph closed #210
  • May 08 09:16
    jaytaph edited #210
Joshua Thijssen
@jaytaph
it seems that I have GetLocalTicket and GetRemoteTicket mixed up
i need some better naming for this.. it's confusing
ok.. need to think a bit about this flow.. there is something not completely correct code-wise...
Joshua Thijssen
@jaytaph
yeah.. ticket generation is a bit off for tickets.. it works fine for local->local, but not for local->remote
Joshua Thijssen
@jaytaph
It seems to try to fetch an unvalidated ticket, but the system tries to look up this ticket first. The flow is a bit off here. Will newd to refactor this a bit to make more sense.. ill try to get this sorted tonight
acalatrava
@acalatrava
Great! At least you found the bug quick enough. Also I think we should get rid of external dependencies like Redis, don’t you think?
Joshua Thijssen
@jaytaph
Yes. I want to, but we prob use sqlite or something. Its pretty easy to write a new driver for those parts
Just implement the repository interface and were done :)
Ive already got the keyserver as a sqlite driver as well. Mostly for e2e testing later on
I think i only store invitation tokens and sending tokens in redis. We came up with a way to validate invitation tokens with storing them, so that is probably one datasource gone
acalatrava
@acalatrava
Use this , that way everything is Go ;)
https://github.com/boltdb/bolt
I used it in the past and it’s fast and easy to implement
Joshua Thijssen
@jaytaph
Would be easy enough to implement
Joshua Thijssen
@jaytaph
Something you would like to trybto implement?
acalatrava
@acalatrava
I’d love to! But I need to get familiar with the code first
I could try to implement the bolt thing
Also I’d like to implement the decentralized stuff for the keyserver
Joshua Thijssen
@jaytaph
the bolt is the easiest I guess
i can help you start
(i have no notifications from gitter, so i miss communication :( )
you can check out internal/ticket/redis.go. That's the implementation of the interface found in internal/ticket/ticket.go (just 3 functions)
to actually use the new bolt-code, you need to add it as a dependency to the container (internal/container/ticket.go)
(i only thing you need to change "NewRepository" to "NewRedisRepository" and "NewBoltDbRepository"
just send PR's for code review otherwise.. i can help you out
Joshua Thijssen
@jaytaph
ooh..
i've got it working!
I think that when you pull the latest version, you can send me a message... :-)
acalatrava
@acalatrava
🎉
I’ll try tonight
acalatrava
@acalatrava
time="Sep 19 21:15:55" level=trace msg="message completed for ticket e7d2c58a-27bf-44d3-8921-6e8250767245"
Joshua Thijssen
@jaytaph
hang on..
i have 2 messages in my inbox
image.png
image.png
:-)
happy days!
Joshua Thijssen
@jaytaph
image.png
message send back...
acalatrava
@acalatrava
🎉

``` root@dev:~/projects/bitmaelum-suite/release# ./bm-client read


| () | | \/ | | |
| |) || || \ / | __ | |
|
<| |
| |\/| |/ ` |/ \ | | | | ' ` \
| |) | | || | | | (| | __/ | || | | | | | |
|_/||\|| ||_,|_|_|\,|| || ||

P r i v a c y i s y o u r s a g a i n

Please enter your vault password:
FATA[0001] invalid character 'p' after top-level value

I can see there is a message when issuing a fetch-messages command
acalatrava
@acalatrava

root@dev:~/projects/bitmaelum-suite/release# ./readmail -p aaa -a antoniocalatrava!


| () | | \/ | | |
| |) || || \ / | __ | |
|
<| |
| |\/| |/ ` |/ \ | | | | ' ` \
| |) | | || | | | (| | __/ | || | | | | | |
|_/||\|| ||_,|_|_|\,|| || ||

P r i v a c y i s y o u r s a g a i n

Reading message for user Antonio Calatrava (antoniocalatrava!) (c30ec1b200e45b413d118f66a0f3591a883f2b9cc3e95a497e7cf9da1071b4cc)
panic: open /header.json: no such file or directory
goroutine 1 [running]:
main.main()
/root/projects/bitmaelum-suite/tools/readmail/main.go:56 +0xf65

Joshua Thijssen
@jaytaph
don't use readmail
i think you need to use ./bm-client
but you must check the message through "fetch"
bm-client fetch -a 'antoniocalatrava!' -b 1
that will display all message from box 1
and then you get the uuid for the message
and then you can read with bm-client read -b 1 -m <uuid>
Joshua Thijssen
@jaytaph
i think readmail is an old tool to read encrypted mails locally...
Joshua Thijssen
@jaytaph
Q: i have an issue with organisations. I want to threat them a bit as regular addresses, but this has consequences in for instance the vault... One way to deal with this is that when you want to create an organisation acme-inc, you actually registering the address bitmaelum@acme-inc!, which means that everytime we want to seek an organisation contact, we use this address. This works, but the consequence is that we might get into some issues when you actually want to use the bitmaelum@ address as an actual account.. plus, we always know that this address is valid, making it a target...