Coder Social home page Coder Social logo

Security? about asprom HOT 18 CLOSED

alicebob avatar alicebob commented on July 24, 2024
Security?

from asprom.

Comments (18)

alicebob avatar alicebob commented on July 24, 2024

There is #8 but I can't test that...

from asprom.

Xaelias avatar Xaelias commented on July 24, 2024

Oh somehow missed it.
I can test that for you.

from asprom.

alicebob avatar alicebob commented on July 24, 2024

That would be great. The person who made the original request disappeared.

So yeah, if you don't pay for enterprise you won't even have the option to use authentication, afaik.

from asprom.

Xaelias avatar Xaelias commented on July 24, 2024

That may be true. I'm doing this for my work and we jumped straight to the enterprise edition. Building as we speak. Will let you know in a couple minutes :-)

from asprom.

Xaelias avatar Xaelias commented on July 24, 2024

Doesn't look like it's working. Still not getting metrics out of asprom.
Ran:
/tmp/asprom -username stats -listen ":9146"
But still returns

# HELP aerospike_node_scrapes_total Total number of times Aerospike was scraped for metrics.
# TYPE aerospike_node_scrapes_total counter
aerospike_node_scrapes_total 2
# HELP aerospike_node_up Is this node up
# TYPE aerospike_node_up gauge
aerospike_node_up 0```

from asprom.

alicebob avatar alicebob commented on July 24, 2024

ok. Which aerospike version are you using? 4?

from asprom.

Xaelias avatar Xaelias commented on July 24, 2024

3.15

from asprom.

alicebob avatar alicebob commented on July 24, 2024

You use no password? Only a username?

from asprom.

alicebob avatar alicebob commented on July 24, 2024

I added a log line when authentication fails. Could you pull the auth branch, build, and try again?

from asprom.

Xaelias avatar Xaelias commented on July 24, 2024

Yeah. Passwords are optionals.
But just tested with a user with a password, fails too.

Let me build your new version.

from asprom.

Xaelias avatar Xaelias commented on July 24, 2024
/tmp/asprom -listen ":9146" -username stats -password stats
2018/02/22 16:20:27 starting asprom. listening on :9146
2018/02/22 16:20:29 auth error: Authentication failed

from asprom.

alicebob avatar alicebob commented on July 24, 2024

Aha. Password must be hashed. This is not a very convenient way to debug things :/

I'm working on this, will let you know... soon.

from asprom.

alicebob avatar alicebob commented on July 24, 2024

Pushed a possible fix to the auth branch (that's the same branch as before). It now hashes the password. Sorry about the roundaboutness of this all.

(I haven't yet found a way to get a trial license from aerospike Inc)

from asprom.

Xaelias avatar Xaelias commented on July 24, 2024

No don't worry. Thanks for doing this :-) Testing.

from asprom.

Xaelias avatar Xaelias commented on July 24, 2024

Works with and without a password!
If I may have a suggestion, maybe test the authentication at startup time. But I guess that doesn't have to be.

Thanks for fixing it!
I'll keep an eye out for when you merge that back into master.

# HELP aerospike_node_batch_error batch error
# TYPE aerospike_node_batch_error gauge
aerospike_node_batch_error 0
# HELP aerospike_node_batch_index_complete batch index complete
# TYPE aerospike_node_batch_index_complete gauge
aerospike_node_batch_index_complete 0
...

from asprom.

alicebob avatar alicebob commented on July 24, 2024

Thanks, good to hear!

I contacted aerospike, maybe they can give me a license so this is easier next time. I like the startup authentication test idea.

from asprom.

alicebob avatar alicebob commented on July 24, 2024

Merged, a build is available on https://github.com/alicebob/asprom/releases/tag/1.1.0

from asprom.

Xaelias avatar Xaelias commented on July 24, 2024

Thanks!

from asprom.

Related Issues (14)

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.