Code Monkey home page Code Monkey logo

Comments (8)

jmprice avatar jmprice commented on August 14, 2024 1

The documentation says to create a UAA client with:
--authorities doppler.firehose,cloud_controller.global_auditor

But apparently "cloud_controller.global_auditor" doesn't have sufficient authority to read the application environment vars so the IgnoredApp property in the BoltDB is never changed to true.

Changing your UAA Client to have "cloud_controller.admin_read_only" allows the app to be ignored again.

from firehose-to-syslog.

shinji62 avatar shinji62 commented on August 14, 2024

Should work, the issue maybe could be the time of the apps info are reloaded in boltDB or memory.

from firehose-to-syslog.

geofffranks avatar geofffranks commented on August 14, 2024

The env var was set over weekend, and it was still not recognizing it Monday. Did something change in the 5.0.0 release to how the environment data is gathered from CF?

from firehose-to-syslog.

Scoobed avatar Scoobed commented on August 14, 2024

Ok when digging through the caching code...

It looks to never goes back to CF and recache it up again due to rv.TTL.After

var rv entity
err = c.store.Get(makeCacheStorageKey(entityType, uuid), &rv)
switch err {
case nil:
if rv.TTL.After(time.Now()) {
return &rv, nil
}
// else continue
case ErrKeyNotFound:
// continue
default:
return nil, err
}

If we were to change the rv.TTL.Before then it would re-lookup it when the TTL has expired...

var rv entity
err = c.store.Get(makeCacheStorageKey(entityType, uuid), &rv)
switch err {
case nil:
	if rv.TTL.Before(time.Now()) {
		return &rv, nil
                     //continue
	}
	// else continue
case ErrKeyNotFound:
	// continue
default:
	return nil, err
}

from firehose-to-syslog.

shinji62 avatar shinji62 commented on August 14, 2024

It should go back, but randomly as cache will be invalidated https://github.com/cloudfoundry-community/firehose-to-syslog/blob/develop/caching/caching_lazyfill.go#L153

from firehose-to-syslog.

Scoobed avatar Scoobed commented on August 14, 2024

Is there a way to test that, because that is not what we are seeing? As we pulled the boltdb from the VM and looked at it

from firehose-to-syslog.

Scoobed avatar Scoobed commented on August 14, 2024

We will give it a try and see it fixes the issue

from firehose-to-syslog.

Scoobed avatar Scoobed commented on August 14, 2024

The above fixes the problem -- we recreated the UUA client with the correct permission and I used that setting today to stop an apps logging. -- I did have to cause a cf restage [app_name] to pick up the environmental setting

from firehose-to-syslog.

Related Issues (20)

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.